php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63504 include, include_once, require, require_once failure
Submitted: 2012-11-13 15:14 UTC Modified: 2013-02-18 00:36 UTC
From: rsewava at hotmail dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.4.8 OS: ubuntu 12.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-11-13 15:14 UTC] rsewava at hotmail dot com
Description:
------------
include, include_once, require, require_once generate an HTTP Error 500 (Internal 
Server Error). It would be understandable for require and require_once to 
generate these errors if the files were missing but the files are there and even 
include and include_once generate them.
I have found though that if I keep changing which of these functions I use I get 
positive results.
so for example if I try include and it fails, include_once may work instead, if 
that fails require may work instead, if that fails require_once may work. However 
i have found a situation where they have all failed and bring the error mentioned 
above.
Also have noticed that failure depends on the size of the file included. when 
files are small it works. As file size increases so does likelihood of failure

Test script:
---------------
<?php
	include('include/check_if_x_is_a_positive_integer.php');
	include('include/select_x_unique_random_y_from_database.php');
?>

Expected result:
----------------
files to be included

Actual result:
--------------
HTTP Error 500 (Internal Server Error)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-13 15:35 UTC] rasmus@php.net
-Status: Open +Status: Feedback
 [2012-11-13 15:35 UTC] rasmus@php.net
You need to provide way more info here. Check your logs, are you getting a 
segfault? If so, we'll need a backtrace.
 [2013-02-18 00:36 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 18:01:31 2024 UTC