From: rsewava at hotmail dot com Operating system: ubuntu 12.04 PHP version: 5.4.8 Package: *General Issues Bug Type: Bug Bug description:include, include_once, require, require_once failure
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) -- Edit bug report at https://bugs.php.net/bug.php?id=63504&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63504&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63504&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63504&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63504&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63504&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63504&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63504&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63504&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63504&r=support Expected behavior: https://bugs.php.net/fix.php?id=63504&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63504&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63504&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63504&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63504&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63504&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63504&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63504&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63504&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63504&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63504&r=mysqlcfg