Bug #71200 [NEW]: incorrect getrandom checks

From: Date: Wed, 23 Dec 2015 00:47:43 +0000
Subject: Bug #71200 [NEW]: incorrect getrandom checks
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198156@lists.php.net to get a copy of this message
From: crrodriguez at opensuse dot org Operating system: linux PHP version: master-Git-2015-12-22 (Git) Package: *Compile Issues Bug Type: Bug Bug description:incorrect getrandom checks Description: ------------ getrandom() system call is not used on linux due to incorrect ifdef's. HAVE_DECL_GETRANDOM is always undefined as there is no declaration of getrandom on the C library or kernel headers and the code that follows does not use it, only the raw syscall interface. Test script: --------------- strace -egetrandom php -r 'random_bytes(1);' Expected result: ---------------- getrandom("\221", 1, 0) = 1 Actual result: -------------- (nothing, getrandom unused) -- Edit bug report at https://bugs.php.net/bug.php?id=71200&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71200&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71200&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71200&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71200&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71200&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71200&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71200&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71200&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71200&r=support Expected behavior: https://bugs.php.net/fix.php?id=71200&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71200&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71200&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71200&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71200&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71200&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71200&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71200&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71200&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71200&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71200&r=mysqlcfg

« previous php.bugs (#198156) next »