From: Operating system: Windows 7 64bit PHP version: 5.3.6 Package: Semaphore related Bug Type: Bug Bug description:SHMOP not working / crash
Description: ------------ If I make such a intensive read of something saved by shmop, the apache will crash. If it was intensive write, the crash is sooner. This only happens in Win32 (not in Linux) Test script: --------------- <?php $key = 1; $value = 1000; $nbr_of_read_tests = 100000; $shm_id = shmop_open( $key, "c", 0644, strlen($value)); shmop_write ( $shm_id , $value , 0); shmop_close($shm_id); for ($i = 1; $i <= $nbr_of_read_tests; $i++) { $shm_id = shmop_open($key, "a", 0, 0); shm_size = shmop_size($shm_id); $returnedValue = shmop_read ( $shm_id , 0 , $shm_size ); shmop_close($shm_id); } shmop_delete($shm_id); shmop_close($shm_id); ?> Expected result: ---------------- work without any problem. In Linux it works. Actual result: -------------- Crash of Apache -- Edit bug report at https://bugs.php.net/bug.php?id=55070&edit=1 -- Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=55070&r=trysnapshot52 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55070&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55070&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55070&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55070&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55070&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55070&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55070&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55070&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55070&r=support Expected behavior: https://bugs.php.net/fix.php?id=55070&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55070&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55070&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55070&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55070&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55070&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55070&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55070&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55070&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55070&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55070&r=mysqlcfg