]> granicus.if.org Git - php/commitdiff
fix tests
authorAntony Dovgal <tony2001@php.net>
Mon, 11 Sep 2006 14:27:25 +0000 (14:27 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 11 Sep 2006 14:27:25 +0000 (14:27 +0000)
Zend/tests/bug38779.phpt
Zend/tests/bug38779_1.phpt

index 023a048b9fad3895247fd9747f024b7ec2c1993c..63168cf29163eb373100fb5e2db2057056626cbb 100644 (file)
@@ -26,4 +26,4 @@ require 'Loader://qqq.php';
 echo "Done\n";
 ?>
 --EXPECTF--    
-Parse error: syntax error, unexpected T_STRING in Loader://qqq.php on line %d
+Parse error: %s error, unexpected T_STRING in Loader://qqq.php on line %d
index a865323e8ea0d9aebc03e4f882a8089948b8cb4c..8821ae28d0fba1adc4fdfd7a84d5f35f1a15e586 100644 (file)
@@ -31,7 +31,7 @@ stream_wrapper_register('Loader', 'Loader');
 $fp = fopen ('Loader://qqq.php', 'r');
 
 $filename = dirname(__FILE__)."/bug38779.txt";
-$fp1 = fopen($filename, "w");
+$fp1 = fopen($filename, "wt");
 fwrite($fp1, "<"."?php blah blah?".">");
 fclose($fp1);
 
@@ -40,6 +40,10 @@ include $filename;
 echo "Done\n";
 ?>
 --EXPECTF--    
-Parse error: syntax error, unexpected T_STRING in %s on line %d
+Parse error: %s error, unexpected T_STRING in %s on line %d
 string(6) "flush!"
 string(6) "close!"
+--UEXPECTF--
+Parse error: %s error, unexpected T_STRING in %s on line %d
+unicode(6) "flush!"
+unicode(6) "close!"