Bug #53368 [Opn]: CLI fails to interpret shorthand in "-d memory_limit=" in shebang line
| From: | felipe@php.net | Date: | Sun, 21 Nov 2010 13:59:52 +0000 |
| Subject: | Bug #53368 [Opn]: CLI fails to interpret shorthand in "-d memory_limit=" in shebang line | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-156264@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53368&edit=1
ID: 53368
Updated by: felipe@php.net
Reported by: bbi5291 at gmail dot com
Summary: CLI fails to interpret shorthand in "-d
memory_limit=" in shebang line
Status: Open
Type: Bug
Package: Scripting Engine problem
Operating System: GNU/Linux
PHP Version: 5.3SVN-2010-11-20 (snap)
Block user comment: N
Private report: N
New Comment:
This issue is related to bug #53034
Previous Comments:
------------------------------------------------------------------------
[2010-11-20 23:19:47] bbi5291 at gmail dot com
Description:
------------
Version: "PHP 5.3.4RC2-dev (cli) (built: Nov 20 2010 16:50:58)"
Configured with all settings default.
Note that the script below should be invoked as "./test.php" rather than
"php test.php" (for example) in order to reproduce the bug.
The bug is not present in the 5.2 snapshots.
Test script:
---------------
#!/usr/bin/php -d memory_limit=16M -n
<?
echo fgets(STDIN) + fgets(STDIN) . "\n";
?>
Expected result:
----------------
The script is intended to read two integers, one per line, from standard
input and print their sum to standard output.
Actual result:
--------------
PHP prints the error message "Could not startup." and quits. However,
the expected result is seen when "16M" is replaced with "16777216" in
the shebang line, and also when php is explicitly invoked (e.g., "php
test.php") regardless of whether the shorthand is used.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53368&edit=1