<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>[PHP-DEV] Old bug 40459: Stat and Dir stream wrapper methods do not call constructor</title>
        <description> Hi all,

I encountered bug #40459 [1] recently. It seems the bug has been ignored
because not many people encounter it and the original author did not
give feedback.

The issue is assigned to Wez. According to the git checkin history, he
doesn't seem to be a contributor anymore. I mailed him to see if he can
recommend someone to handle this issue, no response.

So my question is: can anyone familiar with the Stream Wrapper code take
a look at this issue? My C is not of sufficient level to fix this
myself. My idea would be to abstract creating a stream wrapper instance
and invoking the constructor to a separate function and calling that
function from the various functions that use stream wrappers, as the
amount of code needed to construct an instance and call the constructor
seems quite high to copy everywhere.


Kind regards,

Jorrit Schippers




[1] https://bugs.php.net/bug.php?id=40459

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php</description>
        <link>http://www.serverphorums.com/read.php?7,498679,498679#msg-498679</link>
        <lastBuildDate>Wed, 19 Jun 2013 14:40:15 +0200</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://www.serverphorums.com/read.php?7,498679,498857#msg-498857</guid>
            <title>Re: [PHP-DEV] Old bug 40459: Stat and Dir stream wrapper methods do not call constructor</title>
            <link>http://www.serverphorums.com/read.php?7,498679,498857#msg-498857</link>
            <description><![CDATA[ Hi,<br />
<br />
On Fri, 2012-05-18 at 12:42 +0200, Jorrit Schippers - nCode wrote:<br />
&gt; So my question is: can anyone familiar with the Stream Wrapper code take<br />
&gt; a look at this issue? My C is not of sufficient level to fix this<br />
&gt; myself. My idea would be to abstract creating a stream wrapper instance<br />
&gt; and invoking the constructor to a separate function and calling that<br />
&gt; function from the various functions that use stream wrappers, as the<br />
&gt; amount of code needed to construct an instance and call the constructor<br />
&gt; seems quite high to copy everywhere.<br />
<br />
&quot;Fixing&quot; this is quite trivial.. except  that it breaks any code<br />
depending on the current behavior where people are using the constructor<br />
in a way which might have an bad impact. This could only be done in<br />
master.<br />
<br />
Sometime ago I stumbled over that behavior it and had an additional<br />
issue preventing me from fixing it, which I don't remember right now ...<br />
<br />
johannes<br />
<br />
<br />
<br />
-- <br />
PHP Internals - PHP Runtime Development Mailing List<br />
To unsubscribe, visit: <a href="http://www.php.net/unsub.php" target="_blank"  rel="nofollow">http://www.php.net/unsub.php</a>]]></description>
            <dc:creator>Johannes Schlüter</dc:creator>
            <category>php-internals</category>
            <pubDate>Fri, 18 May 2012 18:00:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?7,498679,498679#msg-498679</guid>
            <title>[PHP-DEV] Old bug 40459: Stat and Dir stream wrapper methods do not call constructor</title>
            <link>http://www.serverphorums.com/read.php?7,498679,498679#msg-498679</link>
            <description><![CDATA[ Hi all,<br />
<br />
I encountered bug #40459 [1] recently. It seems the bug has been ignored<br />
because not many people encounter it and the original author did not<br />
give feedback.<br />
<br />
The issue is assigned to Wez. According to the git checkin history, he<br />
doesn't seem to be a contributor anymore. I mailed him to see if he can<br />
recommend someone to handle this issue, no response.<br />
<br />
So my question is: can anyone familiar with the Stream Wrapper code take<br />
a look at this issue? My C is not of sufficient level to fix this<br />
myself. My idea would be to abstract creating a stream wrapper instance<br />
and invoking the constructor to a separate function and calling that<br />
function from the various functions that use stream wrappers, as the<br />
amount of code needed to construct an instance and call the constructor<br />
seems quite high to copy everywhere.<br />
<br />
<br />
Kind regards,<br />
<br />
Jorrit Schippers<br />
<br />
<br />
<br />
<br />
[1] <a href="https://bugs.php.net/bug.php?id=40459" target="_blank"  rel="nofollow">https://bugs.php.net/bug.php?id=40459</a><br />
<br />
-- <br />
PHP Internals - PHP Runtime Development Mailing List<br />
To unsubscribe, visit: <a href="http://www.php.net/unsub.php" target="_blank"  rel="nofollow">http://www.php.net/unsub.php</a>]]></description>
            <dc:creator>Jorrit Schippers - nCode</dc:creator>
            <category>php-internals</category>
            <pubDate>Fri, 18 May 2012 12:50:06 +0200</pubDate>
        </item>
    </channel>
</rss>
