Re: svn: /phd/trunk/phpdotnet/phd/Package/Generic/ BigXHTML.php
| From: | Hannes Magnusson | Date: | Thu, 22 Oct 2009 20:13:57 +0000 |
| Subject: | Re: svn: /phd/trunk/phpdotnet/phd/Package/Generic/ BigXHTML.php | ||
| References: | 1 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-5193@lists.php.net to get a copy of this message | ||
2009/10/22 Moacir de Oliveira Miranda Júnior <moacir@php.net>:
> moacir Thu, 22 Oct 2009 19:13:56 +0000
>
> Revision: http://svn.php.net/viewvc?view=revision&revision=289864s»
> Ð*KŸºÎýÿËÁ�ú
>
> 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
>
> Modified: phd/trunk/phpdotnet/phd/Package/Generic/BigXHTML.php
> ===================================================================
> --- phd/trunk/phpdotnet/phd/Package/Generic/BigXHTML.php 2009-10-22 19:03:31 UTC
> (rev 289863)
> +++ phd/trunk/phpdotnet/phd/Package/Generic/BigXHTML.php 2009-10-22 19:13:56 UTC
> (rev 289864)
> @@ -55,8 +55,10 @@
> }
>
> public function close() {
> - fwrite($this->getFileStream(), $this->footer(true));
> - fclose($this->getFileStream());
> + if ($this->getFileStream()) {
> + fwrite($this->getFileStream(), $this->footer(true));
> + fclose($this->getFileStream());
> + }
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..
-Hannes