ID: 29678 Updated by: [EMAIL PROTECTED] Reported By: bjori at jeshus dot com -Status: Open +Status: Closed Bug Type: Reproducible crash Operating System: FreeBSD 5.2.1 PHP Version: 5.0.0 New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2004-08-14 18:03:42] bjori at jeshus dot com wrong username/password gives also the same error even with trailing slash i.e. $url = 'ftp://foo:[EMAIL PROTECTED]/'; $dir = opendir ( $url ); var_dump ( $dir ); - Hannes ------------------------------------------------------------------------ [2004-08-14 15:29:44] bjori at jeshus dot com Description: ------------ When trying to use opendir() with ftp:// wrapper ( without trailing slash ) php segmentation faults. Would have expected an error message from opendir(). Sounds like http://bugs.php.net/bug.php?id=386 which is fixed..? Reproduce code: --------------- <?php $url = 'ftp://anonymous:[EMAIL PROTECTED]'; $dir = opendir ( $url ); var_dump ( $dir ); ?> Expected result: ---------------- opendir() should return error. Actual result: -------------- PHP crashes. #0 0x080ebafa in _php_stream_write () #1 0x080c6891 in php_stream_ftp_opendir () #2 0x080ecefe in _php_stream_opendir () #3 0x08086b87 in _php_do_opendir () #4 0x08086c5e in zif_opendir () #5 0x0813a19c in zend_do_fcall_common_helper () #6 0x0813a7b6 in zend_do_fcall_handler () #7 0x0813687f in execute () #8 0x081170c9 in zend_execute_scripts () #9 0x080dc7b6 in php_execute_script () #10 0x081429db in main () #11 0x08062fb2 in _start () ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29678&edit=1
