pajoye Sun, 24 Jan 2010 17:53:10 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293917
Log:
- add win32 version of the test, damned error msg with eol in them
Changed paths:
A
php/php-src/branches/PHP_5_3/ext/standard/tests/streams/bug49936_win32.phpt
U php/php-src/trunk/ext/standard/tests/streams/bug49936.phpt
Added:
php/php-src/branches/PHP_5_3/ext/standard/tests/streams/bug49936_win32.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/standard/tests/streams/bug49936_win32.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_3/ext/standard/tests/streams/bug49936_win32.phpt
2010-01-24 17:53:10 UTC (rev 293917)
@@ -0,0 +1,30 @@
+--TEST--
+Bug #49936 (crash with ftp stream in php_stream_context_get_option())
+--SKIPIF--
+<?php
+if( substr(PHP_OS, 0, 3) != "WIN" )
+ die("skip. Do run on Windows only");
+?>
+--INI--
+default_socket_timeout=2
+--FILE--
+<?php
+
+$dir = 'ftp://your:s...@localhost/';
+
+var_dump(opendir($dir));
+var_dump(opendir($dir));
+
+?>
+--EXPECTF--
+Warning: opendir(): connect() failed: %s
+ in %s on line %d
+
+Warning: opendir(ftp://....@localhost/): failed to open dir: operation failed
in %s on line %d
+bool(false)
+
+Warning: opendir(): connect() failed: %s
+ in %s on line %d
+
+Warning: opendir(ftp://....@localhost/): failed to open dir: operation failed
in %s on line %d
+bool(false)
Modified: php/php-src/trunk/ext/standard/tests/streams/bug49936.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/streams/bug49936.phpt 2010-01-24
17:18:38 UTC (rev 293916)
+++ php/php-src/trunk/ext/standard/tests/streams/bug49936.phpt 2010-01-24
17:53:10 UTC (rev 293917)
@@ -1,5 +1,10 @@
--TEST--
Bug #49936 (crash with ftp stream in php_stream_context_get_option())
+--SKIPIF--
+<?php
+if( substr(PHP_OS, 0, 3) == "WIN" )
+ die("skip. Do not run on Windows");
+?>
--FILE--
<?php
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php