-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathbug00575.phpt
More file actions
32 lines (31 loc) · 747 Bytes
/
bug00575.phpt
File metadata and controls
32 lines (31 loc) · 747 Bytes
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
--TEST--
Test for bug #575: Dump super globals contents to error log
--INI--
xdebug.mode=develop
display_errors=0
log_errors=1
error_log=
xdebug.force_display_errors=0
xdebug.force_error_reporting=E_ALL
xdebug.dump.SERVER=*
--FILE--
<?php
ini_set('error_reporting', 0);
trigger_error('six', E_USER_WARNING);
trigger_error('seven');
?>
--EXPECTF--
PHP Warning: six in %sbug00575.php on line 4
PHP Stack trace:
PHP 1. {main}() %sbug00575.php:0
PHP 2. trigger_error($message = 'six', $error_level = 512) %sbug00575.php:4
PHP%S
PHP Dump $_SERVER%A
PHP%S
PHP Notice: seven in %sbug00575.php on line 5
PHP Stack trace:
PHP 1. {main}() %sbug00575.php:0
PHP 2. trigger_error($message = 'seven') %sbug00575.php:5
PHP%S
PHP Dump $_SERVER%A
PHP%S