php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31719 Include stops Scriptexecution on error
Submitted: 2005-01-27 12:01 UTC Modified: 2005-01-27 12:43 UTC
From: oc at teuto dot net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.0.3 OS: Fedora Core 3
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: oc at teuto dot net
New email:
PHP Version: OS:

 

 [2005-01-27 12:01 UTC] oc at teuto dot net
Description:
------------
When you include a file which contains errors, the main PHP-script dies.

Reproduce code:
---------------
test.php:
<?php 
echo "before\n"; 
@include "error.php"; 
echo "after\n"; 
?>

error.php:
<?php 
echo "include\n" 
echo "line2\n"
?>

Expected result:
----------------
before
after

Actual result:
--------------
before

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-27 12:43 UTC] derick@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

.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 15:00:02 2026 UTC