/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
Zend
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/Zend/tests/bug79108.phpt
--TEST-- Bug #79108: Referencing argument in a function makes it a reference in the stack trace --FILE-- <?php function test(string $val) { $a = &$val; hackingHere(); print_r($val); } function hackingHere() { // we're able to modify the $val from here, even though the arg was not a reference debug_backtrace()[1]['args'][0] = 'Modified'; } test('Original'); ?> --EXPECT-- Original
Copyright ©2k19 -
Hexid
|
Tex7ure