Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 48 lines (36 sloc) 1.024 kb
903e2fb @derickr Tests clean-up (probably only part 1 though...)
authored
1 --TEST--
2 Test for segmentation fault with unusual variables (>= PHP 5.2)
3 --SKIPIF--
4 <?php if (!version_compare(phpversion(), "5.2", '>=')) echo "skip >= PHP 5.2 needed\n"; ?>
5 --INI--
6 xdebug.default_enable=1
7 xdebug.auto_trace=0
8 xdebug.collect_params=1
9 xdebug.collect_assignments=0
10 xdebug.profiler_enable=0
11 xdebug.show_local_vars=0
12 xdebug.dump_globals=0
13 --FILE--
14 <?php
15 ${1} = "foo";
16 echo ${1} . "\n";
17
18 ${STDIN} = "foo";
19 echo ${STDIN} . "\n";
20
21 ${array(1,2,3)} = "foo";
22 echo ${array(1,2,3)} . "\n";
23
24 ${new stdclass} = "foo";
25 echo ${new stdclass} . "\n";
26 ?>
27 --EXPECTF--
28 foo
29 foo
30
31 Notice: Array to string conversion in %sbug00032-php52.php on line 8
32
33 Call Stack:
34 %w%f %w%d 1. {main}() %sbug00032-php52.php:0
35
36
37 Notice: Array to string conversion in %sbug00032-php52.php on line 9
38
39 Call Stack:
40 %w%f %w%d 1. {main}() %sbug00032-php52.php:0
41
42 foo
43
44 Catchable fatal error: Object of class stdClass could not be converted to string in %sbug00032-php52.php on line 11
45
46 Call Stack:
47 %w%f %w%d 1. {main}() %sbug00032-php52.php:0
Something went wrong with that request. Please try again.