]> granicus.if.org Git - php/commitdiff
- Skip with CLI
authorfoobar <sniper@php.net>
Fri, 29 Aug 2003 09:05:11 +0000 (09:05 +0000)
committerfoobar <sniper@php.net>
Fri, 29 Aug 2003 09:05:11 +0000 (09:05 +0000)
tests/lang/bug25145.phpt

index 39c83aa4f9db45f504fad4cfbd1b8cbcf6a2b4b9..e33580ab0def9b158590f2a7a2b8fda1af49e8b7 100755 (executable)
@@ -1,21 +1,22 @@
 --TEST--
 Bug #25145 (SEGV on recpt of form input with name like "123[]")
+--SKIPIF--
+<?php if (php_sapi_name() == 'cli') echo 'skip'; ?>
 --GET--
 123[]=SEGV
 --FILE--
 <?php
 
-print_r($_REQUEST);
+var_dump($_REQUEST);
 echo "Done\n";
 
 ?>
 --EXPECT--
-Array
-(
-    [123] => Array
-        (
-            [0] => SEGV
-        )
-
-)
+array(1) {
+  [123]=>
+  array(1) {
+    [0]=>
+    string(4) "SEGV"
+  }
+}
 Done