mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
11 lines
209 B
PHP
11 lines
209 B
PHP
--TEST--
|
|
Cannot use built-in functions in write context (assignment)
|
|
--FILE--
|
|
<?php
|
|
|
|
strlen("foo")[0] = 1;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use result of built-in function in write context in %s on line %d
|