mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
971e5c5186
Make sure we don't drop the by-reference check when passing the result of a VM builtin function.
12 lines
251 B
PHP
12 lines
251 B
PHP
--TEST--
|
|
Bug #79783: Segfault in php_str_replace_common
|
|
--FILE--
|
|
<?php
|
|
str_replace("a", "b", "c", strlen("d"));
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot pass parameter 4 by reference in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|