php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #2709 having a require() inside a function seems to crash
Submitted: 1999-11-12 11:13 UTC Modified: 2000-07-31 21:59 UTC
From: pfaffman at relax dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Beta 2 OS: linux 2.2
Private report: No CVE-ID: None
 [1999-11-12 11:13 UTC] pfaffman at relax dot com
<?php
phpinfo();

function sfduc(){
require ("head.inc");
}
 ?>

has no output.  I understand why, but it should print some kind of error message.

Thanks

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-14 02:32 UTC] joey at cvs dot php dot net
Only stops if head.inc is a non-existent file.
I agree, it _SHOULD_ print error message,
but this should be a feature/change request.
 [2000-07-31 21:59 UTC] waldschrott@php.net
This isn?t relevant anymore.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 14:01:30 2024 UTC