]> granicus.if.org Git - php/commitdiff
fix test
authorAntony Dovgal <tony2001@php.net>
Mon, 16 Jul 2007 10:39:34 +0000 (10:39 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 16 Jul 2007 10:39:34 +0000 (10:39 +0000)
ext/standard/tests/file/bug41815.phpt
ext/standard/tests/serialize/bug37947.phpt

index 984682d250b3d83ea42465c22fef729d928ccf2c..f77468d96d1456dd3f26d3392159c0fa742edb06 100644 (file)
@@ -6,7 +6,7 @@ Bug #41815 (Concurrent read/write fails when EOF is reached)
 $filename = dirname(__FILE__)."/concur_rw.txt";
 
 @unlink($filename);
-$writer = fopen($filename, "w");
+$writer = fopen($filename, "wt");
 $reader = fopen($filename, "r");
 fread($reader, 1);
 fwrite($writer, "foo");
index 7b106cbb85a6b423a21ec0b6d56e0612739164b2..40d4a03604eb3aee6cc91cb216b869b25e4c2109 100755 (executable)
@@ -3,7 +3,7 @@ Bug #37947 (zend_ptr_stack reallocation problem)
 --INI--
 error_reporting=0
 --FILE--
-<?
+<?php
 class test {
         function extend_zend_ptr_stack($count,$a,$b,$c,$d,$e) {
                 if ($count>0) $this->extend_zend_ptr_stack($count -
@@ -17,5 +17,6 @@ class test {
 
 $str='a:2:{i:0;O:4:"test":0:{}junk';
 var_dump(unserialize($str));
+?>
 --EXPECT--
 bool(false)