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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 22:01:31 2024 UTC