forked from xdebug/xdebug
-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
bug00032-php52.phpt
47 lines (36 loc) · 1 KB
/
bug00032-php52.phpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--TEST--
Test for segmentation fault with unusual variables (>= PHP 5.2)
--SKIPIF--
<?php if (!version_compare(phpversion(), "5.2", '>=')) echo "skip >= PHP 5.2 needed\n"; ?>
--INI--
xdebug.default_enable=1
xdebug.auto_trace=0
xdebug.collect_params=1
xdebug.collect_assignments=0
xdebug.profiler_enable=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--
foo
foo
Notice: Array to string conversion in %sbug00032-php52.php on line 8
Call Stack:
%w%f %w%d 1. {main}() %sbug00032-php52.php:0
Notice: Array to string conversion in %sbug00032-php52.php on line 9
Call Stack:
%w%f %w%d 1. {main}() %sbug00032-php52.php:0
foo
Catchable fatal error: Object of class stdClass could not be converted to string in %sbug00032-php52.php on line 11
Call Stack:
%w%f %w%d 1. {main}() %sbug00032-php52.php:0