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 13:50 UTC

Return to Bug #55509 | Download this patch
This patch is obsolete

Obsoleted by 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');
}
?>
--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: Fri Dec 27 18:01:30 2024 UTC