|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-21 22:39 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 04:00:01 2025 UTC |
Description: ------------ When using the -r option on the command line and the code below, PHP will cause a segmentation fault after script time limit is reached. This is reproducable in that it happens most of the time, but not all of the time. Once, PHP simply hung when the time limit was reached; I let it sit for about a minute after the 'time limit exceeded' message was displayed, and was able to kill it with ^C. System is running RedHat Linux Enterprise Edition, with kernel version 2.4.21-20.ELsmp. Configure Command => './configure' '--prefix=/usr' '--with-config-file-path=/etc' '--with-apxs=/usr/local/apache/bin/apxs' '--with-iconv' '--with-openssl=/usr/local/ssl' '--with-zlib-dir=/usr/lib' '--with-mysql=/usr/local/mysql' '--with-pgsql=shared' '--with-gd' '--with-pdflib=/usr/local' '--with-png-dir=/usr/local/include' '--with-jpeg-dir=/usr/lib' '--with-tiff-dir=/usr/local' '--with-curl=/usr' '--with-expat-dir=/usr' '--with-dom=/usr' '--with-ldap' '--with-xmlrpc' '--enable-sockets' '--enable-dbx' '--enable-dbase' '--enable-exif' '--enable-wddx' '--enable-ftp' '--enable-mbstring' '--with-ncurses' '--with-pspell' '--with-mssql' Reproduce code: --------------- php -r 'set_time_limit( 2 ); $a = 1; $b = array(); while( true ) { $b[] = $a; }' Expected result: ---------------- Fatal error: Maximum execution time of 2 seconds exceeded in Command line code on line 1 Actual result: -------------- Fatal error: Maximum execution time of 2 seconds exceeded in Command line code on line 1 Segmentation fault