Edit report at https://bugs.php.net/bug.php?id=61697&edit=1
ID: 61697 Updated by: ahar...@php.net Reported by: stadli at gmx dot de Summary: spl_autoload_functions returns lambda functions incorrectly -Status: Re-Opened +Status: Closed Type: Bug Package: SPL related PHP Version: 5.4.0 Assigned To: aharvey Block user comment: N Private report: N New Comment: Fixed by expanding the ZEND_STRL macro call, since strncmp() is itself a macro on armhf Linux: http://git.php.net/?p=php- src.git;a=commitdiff;h=f9000fde98195844b4d1c1d6209f9796da3ebee8 Previous Comments: ------------------------------------------------------------------------ [2013-07-23 17:53:57] ahar...@php.net It looks like the fix for this has caused a build failure (Linux, armhf): adam@tf101:~/trees/php-src/5.5$ make /bin/bash /home/adam/trees/php-src/5.5/libtool --silent --preserve-dup-deps -- mode=compile cc -Iext/spl/ -I/home/adam/trees/php-src/5.5/ext/spl/ - DPHP_ATOM_INC -I/home/adam/trees/php-src/5.5/include -I/home/adam/trees/php- src/5.5/main -I/home/adam/trees/php-src/5.5 -I/home/adam/trees/php- src/5.5/ext/date/lib -I/home/adam/trees/php-src/5.5/ext/ereg/regex - I/home/adam/trees/php-src/5.5/TSRM -I/home/adam/trees/php-src/5.5/Zend -g -O2 -fvisibility=hidden -c /home/adam/trees/php-src/5.5/ext/spl/php_spl.c -o ext/spl/php_spl.lo /home/adam/trees/php-src/5.5/ext/spl/php_spl.c: In function âzif_spl_autoload_functionsâ: /home/adam/trees/php-src/5.5/ext/spl/php_spl.c:747:81: error: macro "strncmp" requires 3 arguments, but only 2 given make: *** [ext/spl/php_spl.lo] Error 1 Investigating, but I may kick this back to Stas or Laruence if needed. ------------------------------------------------------------------------ [2013-07-22 05:47:59] s...@php.net Automatic comment on behalf of stas Revision: http://git.php.net/?p=php-src.git;a=commit;h=83ced9124ea0f7be4950b8267b518b05c70323fe Log: Fix bug #61697 - spl_autoload_functions returns lambda functions incorrectly ------------------------------------------------------------------------ [2013-06-25 05:18:59] larue...@php.net hmm, thanks for the reminding, I'd like to see this could happen in 5.5 @dsp, what do you think? ------------------------------------------------------------------------ [2013-06-24 18:12:05] fel...@php.net David, what about this change on 5.5? ------------------------------------------------------------------------ [2013-03-11 04:09:41] stadli at gmx dot de Is there a reason, why this fix still hasn't been implemented? I'd like to see this bug fixed in PHP 5.5 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=61697 -- Edit this bug report at https://bugs.php.net/bug.php?id=61697&edit=1