]> granicus.if.org Git - php/commitdiff
MFB: change run-tests.php to add %a
authorNuno Lopes <nlopess@php.net>
Fri, 14 Sep 2007 15:36:29 +0000 (15:36 +0000)
committerNuno Lopes <nlopess@php.net>
Fri, 14 Sep 2007 15:36:29 +0000 (15:36 +0000)
ext/bz2/tests/005.phpt
ext/standard/tests/general_functions/phpcredits.phpt
ext/standard/tests/general_functions/phpinfo.phpt
ext/standard/tests/strings/sha1.phpt
ext/zlib/tests/005.phpt
ext/zlib/tests/006.phpt
run-tests.php

index ee45f10f7c777071f585c5af45a740ec74f63496..d10f8765e7ddb1cc4a4a2dd121c8042972b8a0a0 100644 (file)
@@ -38,10 +38,10 @@ var_dump(bzdecompress($data2));
 
 echo "Done\n";
 ?>
---EXPECTF--    
+--EXPECTF--
 Warning: bzcompress() expects at least 1 parameter, 0 given in %s on line %d
 NULL
-string(%d) "BZ%s"
+string(%d) "BZ%a"
 int(-2)
 int(-2)
 int(-2)
@@ -73,7 +73,7 @@ Done
 --UEXPECTF--
 Warning: bzcompress() expects at least 1 parameter, 0 given in %s on line %d
 NULL
-unicode(%d) "BZ%s"
+unicode(%d) "BZ%a"
 int(-2)
 int(-2)
 int(-2)
index d7decae148a365803f7015ac57dbbfe13d0039a5..69515dfe6add22dca0ee3c8068eb238a479ff44e 100644 (file)
@@ -17,28 +17,28 @@ var_dump(phpcredits(CREDITS_GROUP));
 PHP Credits
 
 PHP Group
-%s
+%a
 
 Language Design & Concept
-%s
+%a
 
 %wPHP Authors%w
-%s
+%a
 
 %wSAPI Modules%w
-%s
+%a
 
 %wModule Authors%w
-%s
+%a
 
 %wPHP Documentation%w
-%s
+%a
 
 PHP Quality Assurance Team
-%s
+%a
 
 PHP Website Team
-%s
+%a
 bool(true)
 
 Warning: phpcredits() expects parameter 1 to be long, array given in %sphpcredits.php on line 4
@@ -50,5 +50,5 @@ bool(true)
 PHP Credits
 
 PHP Group
-%s
+%a
 bool(true)
index dab7f327c16ad41895af6940b740ab669adb3d2e..32125bfceb4a2037f0b5473a33398b3516d9d280 100644 (file)
@@ -24,6 +24,7 @@ Configure Command => %s
 Server API => Command Line Interface
 Virtual Directory Support => %s
 Configuration File (php.ini) Path => %s
+Loaded Configuration File => %s
 PHP API => %d
 PHP Extension => %d
 Zend Extension => %d
@@ -35,7 +36,7 @@ Registered PHP Streams => %s
 Registered Stream Socket Transports => %s
 Registered Stream Filters => %s
 
-%s
+%a
  _______________________________________________________________________
 
 
@@ -43,22 +44,22 @@ Configuration
 
 PHP Core
 
-%s
+%a
 
 Additional Modules
 
-%s
+%a
 
 Environment
 
-%s
+%a
 
 PHP Variables
 
-%s
+%a
 
 PHP License
-%s
+%a
 bool(true)
 --
 
@@ -71,5 +72,5 @@ bool(true)
 phpinfo()
 
 PHP License
-%s
+%a
 bool(true)
index 0043d27c46da517b83db95d96f08c1908d07ff65..60fb33fd7f82ce72c58e8c53f180afcd830ca351 100644 (file)
@@ -44,8 +44,8 @@ bool(true)
 string(40) "da39a3ee5e6b4b0d3255bfef95601890afd80709"
 string(40) "da39a3ee5e6b4b0d3255bfef95601890afd80709"
 bool(true)
-string(20) "%s"
-string(20) "%s"
+string(20) "%a"
+string(20) "%a"
 
 Warning: sha1_file(%ssha1.dat): failed to open stream: No such file or directory in %s on line %d
 Done
index 874f0545d963589736a80eb82b9d439bc93271c3..5c880f5fe36469e20e67f0b8fcb8309e8fa2dbbb 100644 (file)
@@ -33,18 +33,18 @@ var_dump(gzuncompress((binary)$data2));
 
 echo "Done\n";
 ?>
---EXPECTF--    
+--EXPECTF--
 
 Warning: gzcompress() expects at least 1 parameter, 0 given in %s on line %d
 NULL
 
 Warning: gzcompress(): compression level (1000) must be within -1..9 in %s on line %d
 bool(false)
-string(%d) "%s"
-string(%d) "%s"
-string(%d) "%s"
-string(%d) "%s"
-string(%d) "%s"
+string(%d) "%a"
+string(%d) "%a"
+string(%d) "%a"
+string(%d) "%a"
+string(%d) "%a"
 
 Warning: gzuncompress() expects at least 1 parameter, 0 given in %s on line %d
 NULL
index c736bb3f719e6423a437d2c5389afb1aad731b0c..c51c8323aadb2c7c606fb80d7d6ef3c7ac784113 100644 (file)
@@ -40,11 +40,11 @@ NULL
 
 Warning: gzdeflate(): compression level (1000) must be within -1..9 in %s on line %d
 bool(false)
-string(%d) "%s"
-string(%d) "%s"
-string(%d) "%s"
-string(%d) "%s"
-string(%d) "%s"
+string(%d) "%a"
+string(%d) "%a"
+string(%d) "%a"
+string(%d) "%a"
+string(%d) "%a"
 
 Warning: gzinflate() expects at least 1 parameter, 0 given in %s on line %d
 NULL
index 1d5f4a27e31544455863368c7ca97ec71b397595..c7841765c72908a6ce475ee9531a061eb78d4726 100755 (executable)
@@ -1550,14 +1550,15 @@ COMMAND $cmd
                if (isset($section_text['EXPECTF'])) {
                        $wanted_re = preg_quote($wanted_re, '/');
                        // Stick to basics
-                       $wanted_re = str_replace("%e", '\\' . DIRECTORY_SEPARATOR, $wanted_re);
-                       $wanted_re = str_replace("%s", ".+?", $wanted_re); //not greedy
-                       $wanted_re = str_replace("%w", "\s*", $wanted_re);
-                       $wanted_re = str_replace("%i", "[+\-]?[0-9]+", $wanted_re);
-                       $wanted_re = str_replace("%d", "[0-9]+", $wanted_re);
-                       $wanted_re = str_replace("%x", "[0-9a-fA-F]+", $wanted_re);
-                       $wanted_re = str_replace("%f", "[+\-]?\.?[0-9]+\.?[0-9]*(E-?[0-9]+)?", $wanted_re);
-                       $wanted_re = str_replace("%c", ".", $wanted_re);
+                       $wanted_re = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $wanted_re);
+                       $wanted_re = str_replace('%s', '[^\r\n]+', $wanted_re);
+                       $wanted_re = str_replace('%a', '.+', $wanted_re);
+                       $wanted_re = str_replace('%w', '\s*', $wanted_re);
+                       $wanted_re = str_replace('%i', '[+-]?\d+', $wanted_re);
+                       $wanted_re = str_replace('%d', '\d+', $wanted_re);
+                       $wanted_re = str_replace('%x', '[0-9a-fA-F]+', $wanted_re);
+                       $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:E-?\d+)?', $wanted_re);
+                       $wanted_re = str_replace('%c', '.', $wanted_re);
                        // %f allows two points "-.0.0" but that is the best *simple* expression
                }
 /* DEBUG YOUR REGEX HERE