[PHP-BUG] Bug #62221 [NEW]: Cannot use PATH_INFO pattern when compiled with apxs2filter

2012-06-03 Thread koalay at gmail dot com
From: koalay at gmail dot com
Operating system: Fedora 15
PHP version:  5.4.3
Package:  Apache2 related
Bug Type: Bug
Bug description:Cannot use PATH_INFO pattern when compiled with apxs2filter

Description:

When using PHP, compiled with the option "--apxs2filter" against Apache
2.4.2, Apache would not process any URLs like "foo.php/bar".

When compiled with "--apxs2", the URL "foo.php/bar" would be passed to
"foo.php" and the $_SERVER['PATH_INFO'] would be come '/bar'.

Test script:
---


Expected result:

string(5) "/blog" 

Actual result:
--
Not Found

The requested URL /foo.php/bar was not found on this server.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=62221&edit=1
-- 
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=62221&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=62221&r=trysnapshot53
Try a snapshot (trunk):  
https://bugs.php.net/fix.php?id=62221&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=62221&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62221&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=62221&r=alreadyfixed
Need backtrace:  
https://bugs.php.net/fix.php?id=62221&r=needtrace
Need Reproduce Script:   
https://bugs.php.net/fix.php?id=62221&r=needscript
Try newer version:   
https://bugs.php.net/fix.php?id=62221&r=oldversion
Not developer issue: 
https://bugs.php.net/fix.php?id=62221&r=support
Expected behavior:   
https://bugs.php.net/fix.php?id=62221&r=notwrong
Not enough info: 
https://bugs.php.net/fix.php?id=62221&r=notenoughinfo
Submitted twice: 
https://bugs.php.net/fix.php?id=62221&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=62221&r=globals
PHP 4 support discontinued:  
https://bugs.php.net/fix.php?id=62221&r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=62221&r=dst
IIS Stability:   
https://bugs.php.net/fix.php?id=62221&r=isapi
Install GNU Sed: 
https://bugs.php.net/fix.php?id=62221&r=gnused
Floating point limitations:  
https://bugs.php.net/fix.php?id=62221&r=float
No Zend Extensions:  
https://bugs.php.net/fix.php?id=62221&r=nozend
MySQL Configuration Error:   
https://bugs.php.net/fix.php?id=62221&r=mysqlcfg



Bug #62221 [Fbk->Opn]: Cannot use PATH_INFO pattern when compiled with apxs2filter

2012-06-04 Thread koalay at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=62221&edit=1

 ID: 62221
 User updated by:koalay at gmail dot com
 Reported by:koalay at gmail dot com
 Summary:Cannot use PATH_INFO pattern when compiled with
 apxs2filter
-Status: Feedback
+Status: Open
 Type:   Bug
 Package:Apache2 related
 Operating System:   Fedora 15
 PHP Version:5.4.3
 Block user comment: N
 Private report: N

 New Comment:

Oh, I didn't know that before. It works now with "AcceptPathInfo On". Thanks a 
lot. Please mention this in the documentation so others would not running in to 
this issue.

Thanks a lot!


Previous Comments:

[2012-06-04 07:56:17] larue...@php.net

did you set AcceptPathinfo on ? 
http://httpd.apache.org/docs/2.0/en/mod/core.html#acceptpathinfo


[2012-06-04 04:11:50] koalay at gmail dot com

Description:

When using PHP, compiled with the option "--apxs2filter" against Apache 2.4.2, 
Apache would not process any URLs like "foo.php/bar".

When compiled with "--apxs2", the URL "foo.php/bar" would be passed to 
"foo.php" and the $_SERVER['PATH_INFO'] would be come '/bar'.

Test script:
---


Expected result:

string(5) "/blog" 

Actual result:
--
Not Found

The requested URL /foo.php/bar was not found on this server.






-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62221&edit=1


#43214 [NEW]: PHP won't build with PostgreSQL < 7.4

2007-11-07 Thread koalay at gmail dot com
From: koalay at gmail dot com
Operating system: Linux
PHP version:  5.2.4
PHP Bug Type: Compile Failure
Bug description:  PHP won't build with PostgreSQL < 7.4

Description:

I believe this is almost the same bug as Bug #33813.

PHP-5.2.4 won't build with PostgreSQL < 7.4.
The reason for this is that the ext/pgsql/pgsql.c use the PQfreemem
function which is only available in PostgreSQL 7.4 or later.


Reproduce code:
---
Build with --with-pgsql=[DIR]

Expected result:

It builds normally.

Actual result:
--
...
ext/pgsql/.libs/pgsql.o(.text+0x591a): In function `zif_pg_escape_bytea':
/var/software/LAMP/php-5.2.4/ext/pgsql/pgsql.c:3641: undefined reference
to `PQfreemem'
ext/pgsql/.libs/pgsql.o(.text+0x599c): In function
`zif_pg_unescape_bytea':
/var/software/LAMP/php-5.2.4/ext/pgsql/pgsql.c:3766: undefined reference
to `PQfreemem'
ext/pgsql/.libs/pgsql.o(.text+0x6122): In function `zif_pg_get_notify':
/var/software/LAMP/php-5.2.4/ext/pgsql/pgsql.c:4379: undefined reference
to `PQfreemem'
ext/pgsql/.libs/pgsql.o(.text+0x7daf): In function `php_pgsql_convert':
/var/software/LAMP/php-5.2.4/ext/pgsql/pgsql.c:5185: undefined reference
to `PQfreemem'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

(error exit)

-- 
Edit bug report at http://bugs.php.net/?id=43214&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43214&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43214&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43214&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43214&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43214&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=43214&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=43214&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=43214&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=43214&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=43214&r=support
Expected behavior:http://bugs.php.net/fix.php?id=43214&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=43214&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=43214&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43214&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43214&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43214&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=43214&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=43214&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43214&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=43214&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=43214&r=mysqlcfg