Re: require()/include() still crash when arg1 is file pointer
| From: | Andi Gutmans | Date: | Thu, 18 May 2000 10:22:57 +0000 |
| Subject: | Re: require()/include() still crash when arg1 is file pointer | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-18909@lists.php.net to get a copy of this message | ||
OK I fixed it.
Thanks,
Andi
At 01:03 PM 5/18/00 +0500, Faisal Nasim wrote:
Hi, <? $fp = fopen ( "blah" , "r" ); # 'blah' doesn't exist! include ( $fp ); // require ( $fp ); crashes as well! fclose ( $fp ); exit; ?> I am not willing to use something like this but it should not crash! I posted a bug report a LONG time ago, and I think it was Andi who replied back saying that this is not allowed but it shouldn't crash either... Should be fixed before 4.0-rel. Ah, got it: ID: 3762 Updated by: andi Reported By: faisal@nasim.org Status: Open Bug Type: Reproduceable crash Assigned To: Comments: This isn't supposed to work because you are supposed to give include() a filename and not a file handle. In any case, I'm keeping the bug report open because PHP shouldn't crash in such a case. Full Bug description available at: http://bugs.php.net/version4/?id=3762 Faisal -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net--- Andi Gutmans <andi@zend.com> http://www.zend.com/