b0y-101 Mini Shell


Current Path : E:/www/b-group.old/spfin - Copy/testpayment/src/xdebug/tests/develop/
File Upload :
Current File : E:/www/b-group.old/spfin - Copy/testpayment/src/xdebug/tests/develop/bug00032-php74.phpt

--TEST--
Test for segmentation fault with unusual variables (>= PHP 7.4)
--SKIPIF--
<?php
require __DIR__ . '/../utils.inc';
check_reqs('PHP >= 7.4');
?>
--INI--
xdebug.mode=develop
xdebug.collect_assignments=0
xdebug.show_local_vars=0
xdebug.dump_globals=0
--FILE--
<?php
	${1} = "foo";
	echo ${1} . "\n";

	${STDIN} = "foo";
	echo ${STDIN} . "\n";

	${array(1,2,3)} = "foo";
	echo ${array(1,2,3)} . "\n";

	${new stdclass} = "foo";
	echo ${new stdclass} . "\n";
?>
--EXPECTF--
%s: Array to string conversion in %sbug00032-php74.php on line 8


%s: Array to string conversion in %sbug00032-php74.php on line 9

foo
foo
foo

Fatal error: Uncaught Error: Object of class stdClass could not be converted to string in %sbug00032-php74.php on line 11

Error: Object of class stdClass could not be converted to string in %sbug00032-php74.php on line 11

Call Stack:
%w%f %w%d   1. {main}() %sbug00032-php74.php:0

Copyright © 2019 by b0y-101