svn: /php/php-src/ branches/PHP_5_3/ext/standard/tests/file/bug20424.phpt branches/PHP_5_4/ext/standard/tests/file/bug20424.phpt
trunk/ext/standard/tests/file/bug20424.phpt
| From: | Pierre Joye | Date: | Mon, 12 Dec 2011 19:09:01 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/ext/standard/tests/file/bug20424.phpt branches/PHP_5_4/ext/standard/tests/file/bug20424.phpt trunk/ext/standard/tests/file/bug20424.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-67271@lists.php.net to get a copy of this message | ||
pajoye Mon, 12 Dec 2011 19:09:01 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=320928
Log:
- use the test itself, making the test passes when ran outside the src tree
Changed paths:
U php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug20424.phpt
U php/php-src/branches/PHP_5_4/ext/standard/tests/file/bug20424.phpt
U php/php-src/trunk/ext/standard/tests/file/bug20424.phpt
Modified: php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug20424.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug20424.phpt 2011-12-12 18:36:21 UTC (rev
320927)
+++ php/php-src/branches/PHP_5_3/ext/standard/tests/file/bug20424.phpt 2011-12-12 19:09:01 UTC (rev
320928)
@@ -2,7 +2,7 @@
Bug #20424 (stream_get_meta_data crashes on a normal file stream)
--FILE--
<?php
-$f = fopen(dirname(__FILE__) . "/../../../../run-tests.php", "r");
+$f = fopen(__FILE__, "r");
$dummy = var_export(stream_get_meta_data($f), TRUE);
echo "I'm alive!\n";
?>
Modified: php/php-src/branches/PHP_5_4/ext/standard/tests/file/bug20424.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/standard/tests/file/bug20424.phpt 2011-12-12 18:36:21 UTC (rev
320927)
+++ php/php-src/branches/PHP_5_4/ext/standard/tests/file/bug20424.phpt 2011-12-12 19:09:01 UTC (rev
320928)
@@ -2,7 +2,7 @@
Bug #20424 (stream_get_meta_data crashes on a normal file stream)
--FILE--
<?php
-$f = fopen(dirname(__FILE__) . "/../../../../run-tests.php", "r");
+$f = fopen(__FILE__, "r");
$dummy = var_export(stream_get_meta_data($f), TRUE);
echo "I'm alive!\n";
?>
Modified: php/php-src/trunk/ext/standard/tests/file/bug20424.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/file/bug20424.phpt 2011-12-12 18:36:21 UTC (rev 320927)
+++ php/php-src/trunk/ext/standard/tests/file/bug20424.phpt 2011-12-12 19:09:01 UTC (rev 320928)
@@ -2,7 +2,7 @@
Bug #20424 (stream_get_meta_data crashes on a normal file stream)
--FILE--
<?php
-$f = fopen(dirname(__FILE__) . "/../../../../run-tests.php", "r");
+$f = fopen(__FILE__, "r");
$dummy = var_export(stream_get_meta_data($f), TRUE);
echo "I'm alive!\n";
?>