PHP  
 PHP_5_3
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/standard/tests/streams/bug49936.phpt ('Bug #49936 (crash with ftp stream in php_stream_context_get_option())')

Script

1: <?php
2:
3: $dir 
'ftp://your:self@localhost/';
4:
5:
var_dump(opendir($dir));
6:
var_dump(opendir($dir));
7:
8:
?>
9:

Expected

Warning: opendir(): connect() failed: Connection refused 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: Connection refused in %s on line %d

Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
bool(false)

Output

Warning: opendir(ftp://...@localhost/): failed to open dir: not implemented in /var/php_gcov/PHP_5_3/ext/standard/tests/streams/bug49936.php on line 5
bool(false)

Warning: opendir(ftp://...@localhost/): failed to open dir: not implemented in /var/php_gcov/PHP_5_3/ext/standard/tests/streams/bug49936.php on line 6
bool(false)

Diff

001+ Warning: opendir(ftp://...@localhost/): failed to open dir: not implemented in /var/php_gcov/PHP_5_3/ext/standard/tests/streams/bug49936.php on line 5
002+ bool(false)
001- Warning: opendir(): connect() failed: Connection refused in %s on line %d
003- Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
004+ Warning: opendir(ftp://...@localhost/): failed to open dir: not implemented in /var/php_gcov/PHP_5_3/ext/standard/tests/streams/bug49936.php on line 6
005- 
006- Warning: opendir(): connect() failed: Connection refused in %s on line %d
007- 
008- Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
009- bool(false)

 

Generated at Fri, 18 Apr 2014 07:01:42 +0000 (44 hours ago)

Copyright © 2005-2014 The PHP Group
All rights reserved.