|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40168 stream_get_wrappers() appends a null-byte
Submitted: 2007-01-19 14:35 UTC Modified: 2007-01-19 14:51 UTC
From: php dot net at benjamin dot schulz dot name Assigned:
Status: Closed Package: Streams related
PHP Version: 5.2.1RC3 OS: linux
Private report: No CVE-ID: None
 [2007-01-19 14:35 UTC] php dot net at benjamin dot schulz dot name
see the summary

Reproduce code:
class foo {}
stream_wrapper_register("foo", "foo");
$t = stream_get_wrappers();
$t = array_pop($t);
var_dump($t); // string(4) "foo


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-19 14:51 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 12:01:29 2024 UTC