Annotation of embedaddon/php/Zend/tests/bug54262.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #54262 (Crash when assigning value to a dimension in a non-array)
! 3: --FILE--
! 4: <?php
! 5: $a = '0';
! 6: var_dump(isset($a['b']));
! 7: $simpleString = preg_match('//', '', $a->a);
! 8: $simpleString["wrong"] = "f";
! 9: echo "ok\n";
! 10: ?>
! 11: --EXPECTF--
! 12: bool(true)
! 13:
! 14: Warning: Attempt to modify property of non-object in %sbug54262.php on line 4
! 15:
! 16: Warning: Cannot use a scalar value as an array in %sbug54262.php on line 5
! 17: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>