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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: asoloviev at mail15 dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 31 10:00:03 2025 UTC