From: Operating system: OS X 10.6.8 PHP version: 5.3.8 Package: *Compile Issues Bug Type: Bug Bug description:Function time_nanosleep() is undefined on OS X
Description: ------------ Between PHP 5.3.3 and 5.3.4 the detection of the C nanosleep function got broken on OS X, such that the time_nanosleep PHP function is no longer available. This problem was previously reported on Stack Overflow: http://stackoverflow.com/questions/7503250 And to the MacPorts project: https://trac.macports.org/ticket/31530 The fix for PHP bug 50345 seems to be the culprit. I fixed it in MacPorts by reverting the change that resolved that bug (this is what's in the attached patch), but this probably re-opens bug 50345. PHP is looking for the nanosleep C function in the "rt" library, but there is no such library on Mac OS X, leading to this error in the config.log: ld: library not found for -lrt Thus the test for existence of the nanosleep C function fails, and therefore PHP gets built without the time_nanosleep PHP function. Test script: --------------- php -r 'echo (int)function_exists("time_nanosleep")."\n";' Expected result: ---------------- 1 Actual result: -------------- 0 -- Edit bug report at https://bugs.php.net/bug.php?id=71672&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71672&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=71672&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71672&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71672&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=71672&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=71672&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71672&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71672&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71672&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71672&r=support Expected behavior: https://bugs.php.net/fix.php?id=71672&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71672&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71672&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71672&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71672&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71672&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71672&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71672&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71672&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71672&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71672&r=mysqlcfg