#42973 [Opn->Bgs]: php-cli is incorrectly parsing directives
| From: | jani@php.net | Date: | Mon, 15 Oct 2007 12:52:12 +0000 |
| Subject: | #42973 [Opn->Bgs]: php-cli is incorrectly parsing directives | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118550@lists.php.net to get a copy of this message | ||
ID: 42973
Updated by: jani@php.net
Reported By: asoloviev at mail15 dot com
-Status: Open
+Status: Bogus
Bug Type: CGI related
Operating System: Gentoo
PHP Version: 5.2.4
New Comment:
See last comment here:
http://bugs.php.net/bug.php?id=14416
It's really an OS limitation. Report to Linux kernel developers. :)
Previous Comments:
------------------------------------------------------------------------
[2007-10-15 12:34:54] asoloviev at mail15 dot com
Description:
------------
php-cli is incorrectly parsing directives specified as command line
arguments
Reproduce code:
---------------
$ cat test.php
#!/usr/lib/php5/bin/php -d memory_limit=192M -d safe_mode=Off
<?php
phpinfo();
?>
$ ./test.php
Expected result:
----------------
phpinfo()
PHP Version => 5.2.4_p20070914-pl2-gentoo
...
memory_limit => 192M => 192M
...
safe_mode => On => On
...
Actual result:
--------------
phpinfo()
PHP Version => 5.2.4_p20070914-pl2-gentoo
...
memory_limit => 192M -d safe_mode => 192M -d safe_mode
...
safe_mode => Off => Off
...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42973&edit=1