Bug #78454 [NEW]: Multiple numeric separators in bin/hex numbers cause fatal error

From: Date: Sat, 24 Aug 2019 22:05:13 +0000
Subject: Bug #78454 [NEW]: Multiple numeric separators in bin/hex numbers cause fatal error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222395@lists.php.net to get a copy of this message
From: mattacosta at gmail dot com Operating system: PHP version: 7.4.0beta4 Package: Scripting Engine problem Bug Type: Bug Bug description:Multiple numeric separators in bin/hex numbers cause fatal error Description: ------------ Multiple adjacent underscores after a leading 0 in a hex or bin number cause a fatal error. https://3v4l.org/jUR51 Test script: --------------- 0x0__F; // or 0b0__1; Expected result: ---------------- Parse error: syntax error, unexpected '__F' (T_STRING) Actual result: -------------- Fatal error: Out of memory (allocated 2097152) (tried to allocate 18446744073709551615 bytes) in /in/jUR51 on line 3 mmap() failed: [22] Invalid argument mmap() failed: [22] Invalid argument Process exited with code 255. -- Edit bug report at https://bugs.php.net/bug.php?id=78454&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78454&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78454&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78454&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78454&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78454&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78454&r=support Expected behavior: https://bugs.php.net/fix.php?id=78454&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78454&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78454&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78454&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78454&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78454&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78454&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78454&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78454&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78454&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78454&r=mysqlcfg

« previous php.bugs (#222395) next »