php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32824 require_once() don't throw an error msg when file will be included twice
Submitted: 2005-04-25 14:02 UTC Modified: 2005-04-25 14:09 UTC
From: thomas at ecommerce dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.3.11 OS: Linux SuSE 9.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thomas at ecommerce dot com
New email:
PHP Version: OS:

 

 [2005-04-25 14:02 UTC] thomas at ecommerce dot com
Description:
------------
When an file will be included twice, there wouldn't be thrown    
an error message about that. I have set E_ALL in my php.ini.

Reproduce code:
---------------
<?php

require_once 'test.php';

require_once 'test.php';

echo "asdf";

Expected result:
----------------
An error should be thrown that the file was required two times....

Actual result:
--------------
script just continue running...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-25 14:09 UTC] tony2001@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

That's exactly how it works.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 10:01:33 2025 UTC