Edit report at https://bugs.php.net/bug.php?id=40459&edit=1
ID: 40459 Updated by: s...@php.net Reported by: clay at killersoft dot com Summary: Stat and Dir stream wrapper methods do not call constructor -Status: Re-Opened +Status: Closed Type: Bug Package: Streams related Operating System: irrelevant PHP Version: 5.2.1 Assigned To: stas Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. 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/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2012-08-09 07:12:26] s...@php.net Automatic comment on behalf of stas Revision: http://git.php.net/?p=php-src.git;a=commit;h=4db70fd406c805a296f4531088fe716a1ef67158 Log: fix bug #40459 - make all stream funcs that create object call ctor ------------------------------------------------------------------------ [2012-08-07 23:48:41] s...@php.net See also: https://github.com/php/php-src/pull/93 ------------------------------------------------------------------------ [2012-05-04 12:47:27] jschipp...@php.net I believe this issue is still present. I have attached a test case to demonstrate the problem. When looking at main/streams/userspace.c, it is clear that only in user_wrapper_opener() the constructor of the user space class is called (the "if (uwrap->ce->constructor) {}" block). ------------------------------------------------------------------------ [2012-05-04 12:46:05] jschipp...@php.net The following patch has been added/updated: Patch Name: bug-40459 Revision: 1336135565 URL: https://bugs.php.net/patch-display.php?bug=40459&patch=bug-40459&revision=1336135565 ------------------------------------------------------------------------ [2008-07-21 01:00:02] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=40459 -- Edit this bug report at https://bugs.php.net/bug.php?id=40459&edit=1