Date: 05/18/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #4463 Updated: php 4.0rc2 vs. pdflib 3.0"
- Previous message: daniel.burckhardt <email protected>: "[PHP-DEV] PHP 4.0 Bug #4497: PHP has encountered an Access Violation while using class"
- In reply to: Faisal Nasim: "[PHP-DEV] require()/include() still crash when arg1 is file pointer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>
>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 <email protected>
>For additional commands, e-mail: php-dev-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>
--- Andi Gutmans <andi <email protected>> http://www.zend.com/-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #4463 Updated: php 4.0rc2 vs. pdflib 3.0"
- Previous message: daniel.burckhardt <email protected>: "[PHP-DEV] PHP 4.0 Bug #4497: PHP has encountered an Access Violation while using class"
- In reply to: Faisal Nasim: "[PHP-DEV] require()/include() still crash when arg1 is file pointer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

