We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$_SERVER
1 parent 092fd61 commit 6a68331Copy full SHA for 6a68331
1 file changed
ext/soap/tests/gh22218.phpt
@@ -0,0 +1,27 @@
1
+--TEST--
2
+GH-22218 (SoapServer::handle() segfault on non-array/unset $_SERVER)
3
+--EXTENSIONS--
4
+soap
5
+--CREDITS--
6
+Rex-Reynolds
7
+--SKIPIF--
8
+<?php
9
+if (php_sapi_name() == 'cli') echo 'skip needs request body (POST)';
10
+?>
11
+--POST--
12
+<SOAP-ENV:Envelope
13
+ xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
14
+ <SOAP-ENV:Body>
15
+ <test/>
16
+ </SOAP-ENV:Body>
17
+</SOAP-ENV:Envelope>
18
+--FILE--
19
20
+$_SERVER = 79;
21
+$server = new SoapServer(null, ['uri' => 'http://test-uri']);
22
+$server->handle();
23
+echo "ALIVE\n";
24
25
+--EXPECTF--
26
+%A
27
+ALIVE
0 commit comments