Bug #73172 [NEW]: parse error: Invalid numeric literal

From: Date: Mon, 26 Sep 2016 07:44:30 +0000
Subject: Bug #73172 [NEW]: parse error: Invalid numeric literal
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204268@lists.php.net to get a copy of this message
From: elbazmichael92 at gmail dot com Operating system: Windows 7 PHP version: 7.0.11 Package: *General Issues Bug Type: Bug Bug description:parse error: Invalid numeric literal Description: ------------ On php cli only (all version > 7) this code will throw parse error: Invalid numeric literal the problem only with int parameter greater than 2147483647 (unsigned int) function test($a, $x, $y){ return; } test('test', 2147483648, 'test'); the only solution i found is to add space after the int parameter: test('test', 2147483648 , 'test'); i found this bug using the phpseclib lib class SFTP line 1294. Test script: --------------- function test($a, $x, $y){ return; } test('test', 2147483648, 'test'); Expected result: ---------------- running without error Actual result: -------------- Parse error: Invalid numeric literal -- Edit bug report at https://bugs.php.net/bug.php?id=73172&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73172&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73172&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73172&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73172&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73172&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73172&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73172&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73172&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73172&r=support Expected behavior: https://bugs.php.net/fix.php?id=73172&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73172&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73172&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73172&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73172&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73172&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73172&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73172&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73172&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73172&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73172&r=mysqlcfg

« previous php.bugs (#204268) next »