php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #55509
Patch bug55509.diff revision 2011-09-06 15:11 UTC by laruence@php.net
revision 2011-09-06 14:10 UTC by laruence@php.net
revision 2011-09-06 13:42 UTC by laruence@php.net
Patch bug55509.phpt revision 2011-09-06 14:01 UTC by laruence@php.net
revision 2011-09-06 13:50 UTC by laruence@php.net

Patch bug55509.phpt for Reproducible crash Bug #55509

Patch version 2011-09-06 14:01 UTC

Return to Bug #55509 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions:

Developer: laruence@php.net

--TEST--
Bug #55509 (segfault on x86_64 using more than 2G memory)
--SKIPIF--
<?php
if( substr(PHP_OS, 0, 3) == 'WIN'){
  die('skip Not for Windows');
}

if (PHP_INT_SIZE == 4) {
  die('skip Not for 32-bits OS');
}
?>
--INI--
memory_limit=3G
--FILE--
<?php 
file_get_contents("/dev/zero");
?>
--EXPECTF--
Fatal error: Allowed memory size of %d bytes exhausted (tried to allocate %d bytes) in %s/bug55509.php on line %d
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 09:01:30 2024 UTC