xref: /PHP-5.3/Zend/tests/bug54265.phpt (revision 07aa25b4)
1--TEST--
2Bug #54265 (crash when variable gets reassigned in error handler)
3--FILE--
4<?php
5function my_errorhandler($errno,$errormsg) {
6  global $my_var;
7  $my_var = 0;
8  echo "EROOR: $errormsg\n";
9}
10set_error_handler("my_errorhandler");
11$my_var = str_repeat("A",$my_var[0]->errormsg = "xyz");
12echo "ok\n";
13?>
14--EXPECT--
15EROOR: Creating default object from empty value
16ok
17
18