bug72858.phpt 375 B

1234567891011121314151617181920
  1. --TEST--
  2. Bug #72858 shm_attach null dereference
  3. --EXTENSIONS--
  4. sysvshm
  5. --SKIPIF--
  6. <?php
  7. if (4 < PHP_INT_SIZE) { print "skip 32-bit only"; }
  8. if (substr(PHP_OS, 0, 3) != "WIN") { print "skip windows only"; }
  9. ?>
  10. --FILE--
  11. <?php
  12. $v1=100;
  13. $v2=0x4fffffff + 0x1337;
  14. shm_attach($v1,$v2);
  15. ?>
  16. --EXPECTF--
  17. Warning: shm_attach(): Failed for key 0x64: Not enough space in %s on line %d