php-src/Zend/tests/builtin_in_write_context_error2.phpt

11 lines
209 B
PHP

--TEST--
Cannot use built-in functions in write context (reference)
--FILE--
<?php
$ref =& strlen("foo");
?>
--EXPECTF--
Fatal error: Cannot use result of built-in function in write context in %s on line %d