|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2012-03-22 18:44 UTC] szarkos@php.net
 Description: ------------ Testing APC-trunk on Windows 2008R2 SP1 with Apache 2.2 and PHP 5.4.0-ts. APC appears to load and function normally, however I receive errors on the page and in the Apache error log using either Drupal7 or a Symfony test app called AcmePizzaBundle: https://github.com/beberlei/AcmePizzaBundle Expected result: ---------------- Pages should display as normal without errors on the page or in the logs. Actual result: -------------- With Symfony I see the following error on screen and in the logs: Notice: require(): 1. h->opened_path=[null] h->filename=[C:\Apache2\htdocs\symfony\app/../vendor/symfony/src\Symfony\Component\ClassLoader\DebugUniversalClassLoader.php] in C:\Apache2\htdocs\symfony\app\bootstrap.php.cache on line 1193 Notice: require(): apc_cache_find [-2043727128] in C:\Apache2\htdocs\symfony\app\bootstrap.php.cache on line 1193 Notice: require(): 1. h->opened_path=[null] h->filename=[C:\Apache2\htdocs\symfony\app/../vendor/symfony/src\Symfony\Component\HttpKernel\Debug\ErrorHandler.php] in C:\Apache2\htdocs\symfony\vendor\symfony\src\Symfony\Component\ClassLoader\DebugUniversalClassLoader.php on line 55 Notice: require(): apc_cache_find [-2043726680] in C:\Apache2\htdocs\symfony\vendor\symfony\src\Symfony\Component\ClassLoader\DebugUniversalClassLoader.php on line 55 Fatal error: Uncaught exception 'ErrorException' with message 'Notice: require(): 1. h->opened_path=[null] h->filename=[C:\Apache2\htdocs\symfony\app/../vendor/symfony/src\Symfony\Component\HttpKernel\Debug\ExceptionHandler.php] in C:\Apache2\htdocs\symfony\vendor\symfony\src\Symfony\Component\ClassLoader\DebugUniversalClassLoader.php line 55' in C:\Apache2\htdocs\symfony\vendor\symfony\src\Symfony\Component\HttpKernel\Debug\ErrorHandler.php:65 Stack trace: #0 C:\Apache2\htdocs\symfony\vendor\symfony\src\Symfony\Component\ClassLoader\DebugUniversalClassLoader.php(55): Symfony\Component\HttpKernel\Debug\ErrorHandler->handle(8, 'require(): 1. h...', 'C:\Apache2\htdo...', 55, Array) #1 C:\Apache2\htdocs\symfony\vendor\symfony\src\Symfony\Component\ClassLoader\DebugUniversalClassLoader.php(55): Symfony\Component\ClassLoader\DebugUniversalClassLoader::loadClass() #2 [internal function]: Symfony\Component\ClassLoader\DebugUniversalClassLoader->loadClass('Symfony\Compone...') #3 C:\Apache2\htdocs\symfony\app\bootstrap.ph in C:\Apache2\htdocs\symfony\vendor\symfony\src\Symfony\Component\HttpKernel\Debug\ErrorHandler.php on line 65 With Drupal7 I see a number of Notice messages on screen and in the log. Here are a few lines: •Notice: include(): 1. h->opened_path=[null] h->filename=[C:\Apache2\htdocs\drupal7/themes/bartik/templates/page.tpl.php] in theme_render_template() (line 1247 of C:\Apache2\htdocs\drupal7\includes\theme.inc). •Notice: include(): apc_cache_find [-2043762843] in theme_render_template() (line 1247 of C:\Apache2\htdocs\drupal7\includes\theme.inc). •Notice: include(): 1. h->opened_path=[null] h->filename=[C:\Apache2\htdocs\drupal7/modules/block/block.tpl.php] in theme_render_template() (line 1247 of C:\Apache2\htdocs\drupal7\includes\theme.inc). •Notice: include(): apc_cache_find [-2043763217] in theme_render_template() (line 1247 of C:\Apache2\htdocs\drupal7\includes\theme.inc). •Notice: include(): 1. h->opened_path=[null] h->filename=[C:\Apache2\htdocs\drupal7/modules/system/region.tpl.php] in theme_render_template() (line 1247 of C:\Apache2\htdocs\drupal7\includes\theme.inc). •Notice: include(): apc_cache_find [-2043772114] in theme_render_template() (line 1247 of C:\Apache2\htdocs\drupal7\includes\theme.inc). •Notice: include(): 1. h->opened_path=[null] h->filename=[C:\Apache2\htdocs\drupal7/modules/user/user-picture.tpl.php] in theme_render_template() (line 1247 of C:\Apache2\htdocs\drupal7\includes\theme.inc). •Notice: include(): apc_cache_find [-2043770207] in theme_render_template() (line 1247 of C:\Apache2\htdocs\drupal7\includes\theme.inc). •Notice: require_once(): 1. h->opened_path=[C:\Apache2\htdocs\drupal7\includes\path.inc] h->filename=[C:\Apache2\htdocs\drupal7\includes\path.inc] in _drupal_bootstrap_full() (line 4899 of C:\Apache2\htdocs\drupal7\includes\common.inc). •Notice: require_once(): apc_cache_find [-2043772730] in _drupal_bootstrap_full() (line 4899 of C:\Apache2\htdocs\drupal7\includes\common.inc). •Notice: require_once(): 1. h->opened_path=[C:\Apache2\htdocs\drupal7\includes\theme.inc] h->filename=[C:\Apache2\htdocs\drupal7\includes\theme.inc] in _drupal_bootstrap_full() (line 4900 of C:\Apache2\htdocs\drupal7\includes\common.inc). •Notice: require_once(): apc_cache_find [-2043772734] in _drupal_bootstrap_full() (line 4900 of C:\Apache2\htdocs\drupal7\includes\common.inc). •Notice: require_once(): 1. h->opened_path=[C:\Apache2\htdocs\drupal7\includes\pager.inc] h->filename=[C:\Apache2\htdocs\drupal7\includes\pager.inc] in _drupal_bootstrap_full() (line 4901 of C:\Apache2\htdocs\drupal7\includes\common.inc). •Notice: require_once(): apc_cache_find [-2043772704] in _drupal_bootstrap_full() (line 4901 of C:\Apache2\htdocs\drupal7\includes\common.inc). •Notice: require_once(): 1. h->opened_path=[C:\Apache2\htdocs\drupal7\includes\database\select.inc] h->filename=[C:\Apache2\htdocs\drupal7\includes\database\select.inc] in _registry_check_code() (line 2913 of C:\Apache2\htdocs\drupal7\includes\bootstrap.inc). •Notice: require_once(): apc_cache_find [-2043772693] in _registry_check_code() (line 2913 of C:\Apache2\htdocs\drupal7\includes\bootstrap.inc). PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 21:00:02 2025 UTC | 
The Symfony fail happens only when APC is compiled with --enable-apc-debug. The reason is the overloaded error handler which is included in Symfony\vendor\symfony\src\Symfony\Component\HttpKernel\Debug\ErrorHandler.php Please consider the following snippet (ErrorHandler.php just copied from the Symfony sources): ============================================================= <?php require 'ErrorHandler.php'; Symfony\Component\HttpKernel\Debug\ErrorHandler::register(); /* anything here is not reached */ ============================================================= The output I got with php.ini-development Notice: Unknown: 1. h->opened_path=[null] h->filename=[C:/Apache2/htdocs/61478/repro/index.php] in Unknown on line 0 Notice: Unknown: 2. h->opened_path=[C:\Apache2\htdocs\61478\repro\index.php] h->filename=[C:/Apache2/htdocs/61478/repro/index.php] in Unknown on line 0 Notice: Unknown: apc_cache_make_file_entry: entry->data.file.filename is [C:\Apache2\htdocs\61478\repro\index.php] in Unknown on line 0 Notice: Unknown: Inserting [C:\Apache2\htdocs\61478\repro\index.php] in Unknown on line 0 Notice: require(): 1. h->opened_path=[null] h->filename=[ErrorHandler.php] in C:\Apache2\htdocs\61478\repro\index.php on line 3 OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo level=8 error_reporting()=32767 $this->level=32767 Fatal error: Uncaught exception 'ErrorException' with message 'Notice: require(): 1. h->opened_path=[null] h->filename=[a.php] in C:\Apache2\htdocs\61478\repro\index.php line 6' in C:\Apache2\htdocs\61478\repro\ErrorHandler.php:66 Stack trace: #0 C:\Apache2\htdocs\61478\repro\index.php(6): Symfony\Component\HttpKernel\Debug\ErrorHandler->handle(8, 'require(): 1. h...', 'C:\Apache2\htdo...', 6, Array) #1 C:\Apache2\htdocs\61478\repro\index.php(6): require() #2 {main} thrown in C:\Apache2\htdocs\61478\repro\ErrorHandler.php on line 66 As one can see, the exception text is merely the APC debug notice message. The Drupal notices are the APC debug outputs. @szarkos@php.net Could you please recheck compiling without --enable-apc-debug ?