Your message dated Fri, 8 Jan 2010 16:51:41 +0100 with message-id <[email protected]> and subject line #425377: php5-cli: stream_wrapper_restore() does not work has caused the Debian Bug report #425377, regarding php5-cli: stream_wrapper_restore() does not work to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 425377: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425377 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: php5-cli Version: 5.2.0-8+etch4 Severity: normal PHP5 standard method stream_wrapper_restore() always breaks. stream_wrapper_unregister('zip'); stream_wrapper_restore('zip'); # triggers "Warning: stream_wrapper_restore(): zip:// never existed, nothing to restore" libapache2-mod-php5 suffers the same bug. Here is a more detailled test program : #!/usr/bin/php <?php error_log("Original list of stream wrappers:"); error_log(print_r(stream_get_wrappers(), true)); $wrappers = stream_get_wrappers(); $w = $wrappers[0]; error_log("Unregistering the first one, '$w'..."); stream_wrapper_unregister($w); error_log("Now '$w' was removed from the list of stream wrappers (fine):"); error_log(print_r(stream_get_wrappers(), true)); error_log("Restoring '$w' (won't work, this is the bug)..."); stream_wrapper_restore($w); error_log("'$w' was not restored into the list of stream wrappers (wrong):"); error_log(print_r(stream_get_wrappers(), true)); ?> -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing'), (300, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.21.1fly (PREEMPT) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
--- End Message ---
--- Begin Message ---Version: 5.2.6.dfsg.1-1+lenny4 Lenny version works just fine: # php test.php Original list of stream wrappers: Array ( [0] => zip [1] => php [2] => file [3] => data [4] => http [5] => ftp [6] => compress.bzip2 [7] => compress.zlib [8] => https [9] => ftps ) Unregistering the first one, 'zip'... Now 'zip' was removed from the list of stream wrappers (fine): Array ( [0] => php [1] => file [2] => data [3] => http [4] => ftp [5] => compress.bzip2 [6] => compress.zlib [7] => https [8] => ftps ) Restoring 'zip' (won't work, this is the bug)... 'zip' was not restored into the list of stream wrappers (wrong): Array ( [0] => php [1] => file [2] => data [3] => http [4] => ftp [5] => compress.bzip2 [6] => compress.zlib [7] => https [8] => ftps [9] => zip ) Thanks for test case. -- Ondřej Surý <[email protected]> http://blog.rfc1925.org/
--- End Message ---

