[regression] stream_get_wrappers broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Breezy |
Fix Released
|
Undecided
|
Martin Pitt | ||
Dapper |
Fix Released
|
Undecided
|
Martin Pitt | ||
Edgy |
Fix Released
|
Undecided
|
Martin Pitt |
Bug Description
Binary package hint: php5
var_dump(
produces:
array
0 => string 'ph' (length=2)
1 => string 'fil' (length=2)
2 => string 'htt' (length=3)
3 => string 'ft' (length=2)
4 => string 'compress.bzip' (length=13)
5 => string 'compress.zli' (length=12)
6 => string 'http' (length=4)
7 => string 'ftp' (length=3)
should produce:
array
0 => string 'php' (length=3)
1 => string 'file' (length=4)
2 => string 'http' (length=4)
3 => string 'ftp' (length=3)
4 => string 'compress.bzip2' (length=14)
5 => string 'compress.zlib' (length=13)
6 => string 'https' (length=5)
7 => string 'ftps' (length=4)
One last char is missing in each array element. phpinfo() presents correct "Registered PHP Streams".
After downgrading to "5.1.6-1ubuntu2" works as it is supposed to.
Introduced probably with:
" * Add debian/
- Buffer overflows in the stream filters functions.
- http://
- http://
From #ubuntu-devel:
16:18 < impl> keescook: http:// cvs.php. net/viewvc. cgi/php- src/main/ streams/ streams. c?r1=1. 82.2.6. 2.9&r2= 1.82.2. 6.2.10& pathrev= php_5_2_ 1 get_wrappers( )'s output?
16:18 < impl> That's the missing changeset
16:18 < impl> I believe, anyway.
16:19 < keescook> impl: and I can test for the breakage/fix just by looking at stream_
16:19 < impl> Yep
16:19 < keescook> okay, cool. Thanks!