Edit report at http://bugs.php.net/bug.php?id=50648&edit=1
ID: 50648 Comment by: jonah dot harris at gmail dot com Reported by: robert_xp at gmx dot net Summary: Format for binary numbers Status: Open Type: Feature/Change Request Package: Feature/Change Request PHP Version: 5.3.1 Block user comment: N New Comment: Per discussion, two patches are attached: - php-src-5.3-50648_p1.patch is a subset and clean up of Robert's original patch for binary notation of integer support. - phpdoc-50648_p1.patch is an English documentation update. NOTE: re2c will have to be run post-patch and pre-commit because the re2c-related diffs could not be included as they pushed the patch size over 100K. Previous Comments: ------------------------------------------------------------------------ [2010-01-04 11:50:15] robert_xp at gmx dot net Description: ------------ I think it would be a good improvement to have a short form for binary numbers like C# with 0b101010. More information and a patch is provided here: http://www.xarg.org/2009/12/php-hacking/ Reproduce code: --------------- 0b0000101 Expected result: ---------------- 5 Actual result: -------------- compile-error ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=50648&edit=1