Re: svn: /phd/trunk/phpdotnet/phd/Package/Generic/ BigXHTML.php
| From: | Hannes Magnusson | Date: | Sat, 24 Oct 2009 07:22:21 +0000 |
| Subject: | Re: svn: /phd/trunk/phpdotnet/phd/Package/Generic/ BigXHTML.php | ||
| References: | 1 2 3 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-5206@lists.php.net to get a copy of this message | ||
On Fri, Oct 23, 2009 at 15:04, Moacir de Oliveira
<moacirdeoliveira.eng@gmail.com> wrote:
>
>
> 2009/10/22 Hannes Magnusson <hannes.magnusson@gmail.com>
>>
>> > Log:
>> > Fixed the error triggered when the close function is called without a
>> > valid file stream
>> >
>> > Changed paths:
>> > U phd/trunk/phpdotnet/phd/Package/Generic/BigXHTML.php
>> >
>>
>> I dont think this is a valid fix..
>> This function shouldnt be called if there isnt a valid stream in the
>> first place, so the root problem is still open..
>>
>
> If fact that is just to check if the $fp var is not empty. That function
> (close()) is only called in the __destruct of the class, maybe it should be
> called when the render use the notify FINALIZE.
during __destruct there is a good chance that the resources are
broken, if if the $fp var is not empty, so yeah, it should rather be
executed during finalize I suppose.
If we have to check the $fp variable at all then something else is broken.
-Hannes