Edit report at http://bugs.php.net/bug.php?id=53368&edit=1

 ID:                 53368
 Updated by:         fel...@php.net
 Reported by:        bbi5291 at gmail dot com
 Summary:            CLI fails to interpret shorthand in "-d
                     memory_limit=" in shebang line
-Status:             Open
+Status:             Wont fix
 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 is an OS dependent issue, see
http://www.in-ulm.de/~mascheck/various/shebang/#splitting


Previous Comments:
------------------------------------------------------------------------
[2010-11-21 14:59:52] fel...@php.net

This issue is related to bug #53034

------------------------------------------------------------------------
[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

Reply via email to