php-src/Zend/tests/bug70912.phpt
2020-02-03 22:52:20 +01:00

11 lines
232 B
PHP

--TEST--
Bug #70912 (Null ptr dereference when class property is initialised to a dereferenced value)
--FILE--
<?php
class A {
public $a=[][];
}
?>
--EXPECTF--
Fatal error: Cannot use [] for reading in %sbug70912.php on line %d