#23162 [Opn->Fbk]: user_error() crashs if $error_msg > 1024 bytes
| From: | magnus@php.net | Date: | Sat, 12 Apr 2003 00:35:37 +0000 |
| Subject: | #23162 [Opn->Fbk]: user_error() crashs if $error_msg > 1024 bytes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37590@lists.php.net to get a copy of this message | ||
ID: 23162
Updated by: magnus@php.net
Reported By: dimon at postmark dot net
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows 2000 Server
PHP Version: 4.3.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-04-11 04:17:18] dimon at postmark dot net
function qq(&$type, &$details, &$file, &$line, $context){
echo "$details";
}
set_error_handler('qq');
user_error(str_repeat('q', 1025), E_USER_WARNING);
// will cause endless loop
set_error_handler(create_function('$type, &$details, $file, $line,
$context', 'echo "$details";'));
user_error(str_repeat('q', 1025), E_USER_WARNING);
// will cause crash
// btw $context passed by reference will cause crash also
set_error_handler(create_function('$type, &$details, $file, $line,
&$context', 'echo "$details";'));
user_error(str_repeat('q', 1024), E_USER_WARNING);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23162&edit=1