From: ydeg71 at tiscali dot it Operating system: Linux PHP version: 5.2.6 PHP Bug Type: Arrays related Bug description: isset() cannot be used with argv[] , returns unrelated error msg
Description: ------------ Using isset() on argv[1] from the CLI results in error message referring to the "?:" operator. Reproduce code: --------------- <? if (isset(argv[1])) echo "it's set"; ?> Expected result: ---------------- Either nothing or the "it's set" string output on STDOUT Actual result: -------------- PHP Parse error: syntax error, unexpected '[', expecting T_PAAMAYIM_NEKUDOTAYIM in /home/ydeg/- on line 1 -- Edit bug report at http://bugs.php.net/?id=45667&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45667&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45667&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45667&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45667&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45667&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45667&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45667&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45667&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45667&r=support Expected behavior: http://bugs.php.net/fix.php?id=45667&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45667&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45667&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45667&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45667&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45667&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45667&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45667&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45667&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45667&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45667&r=mysqlcfg
