]> granicus.if.org Git - php/commitdiff
splitting on whitespace will be different depending on platform, so be specific with...
authorShane Caraveo <shane@php.net>
Mon, 10 Mar 2003 01:10:52 +0000 (01:10 +0000)
committerShane Caraveo <shane@php.net>
Mon, 10 Mar 2003 01:10:52 +0000 (01:10 +0000)
ext/ereg/tests/009.phpt
ext/standard/tests/reg/009.phpt

index 4996ef4c97370061296faf34692f63995422e7ea..dba531e9019012b9202c971fbd6236299559504f 100644 (file)
@@ -4,8 +4,7 @@ Test split()
 --GET--
 --FILE--
 <?php
-       $a=split("[[:space:]]","this is a
-test");
+       $a=split("[[:space:]]","this is a\ntest");
        echo count($a) . "\n";
        for ($i = 0; $i < count($a); $i++) {
           echo $a[$i] . "\n";
index 4996ef4c97370061296faf34692f63995422e7ea..dba531e9019012b9202c971fbd6236299559504f 100644 (file)
@@ -4,8 +4,7 @@ Test split()
 --GET--
 --FILE--
 <?php
-       $a=split("[[:space:]]","this is a
-test");
+       $a=split("[[:space:]]","this is a\ntest");
        echo count($a) . "\n";
        for ($i = 0; $i < count($a); $i++) {
           echo $a[$i] . "\n";