php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42973 php-cli is incorrectly parsing directives
Submitted: 2007-10-15 12:34 UTC Modified: 2007-10-15 12:52 UTC
From: asoloviev at mail15 dot com Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.2.4 OS: Gentoo
Private report: No CVE-ID: None
 [2007-10-15 12:34 UTC] 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
...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-15 12:52 UTC] jani@php.net
See last comment here:
http://bugs.php.net/bug.php?id=14416

It's really an OS limitation. Report to Linux kernel developers. :)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 23:01:30 2024 UTC