]> granicus.if.org Git - php/commitdiff
remove APC fanciness - this was causing non-caching of some files include()d inside...
authorGreg Beaver <cellog@php.net>
Wed, 7 May 2008 05:13:41 +0000 (05:13 +0000)
committerGreg Beaver <cellog@php.net>
Wed, 7 May 2008 05:13:41 +0000 (05:13 +0000)
ext/phar/phar.c

index 29cb6d31d713cb2f0ba056dcf1e6eb7a02138dfe..75c86853afc04ccfff66d2e138592647bc4f5439 100644 (file)
@@ -2975,21 +2975,8 @@ PHP_MINIT_FUNCTION(phar) /* {{{ */
 
        phar_has_bz2 = zend_hash_exists(&module_registry, "bz2", sizeof("bz2"));
        phar_has_zlib = zend_hash_exists(&module_registry, "zlib", sizeof("zlib"));
-       if (zend_hash_exists(&module_registry, "apc", sizeof("apc"))) {
-               zval magic;
-               if (zend_get_constant("\000apc_magic", sizeof("\000apc_magic")-1, &magic TSRMLS_CC)) {
-                       compile_hook *set_compile_hook;
-
-                       set_compile_hook = (compile_hook *) Z_LVAL(magic);
-                       phar_orig_compile_file = set_compile_hook(phar_compile_file);
-               } else {
-                       phar_orig_compile_file = zend_compile_file;
-                       zend_compile_file = phar_compile_file;
-               }
-       } else {
-               phar_orig_compile_file = zend_compile_file;
-               zend_compile_file = phar_compile_file;
-       }
+       phar_orig_compile_file = zend_compile_file;
+       zend_compile_file = phar_compile_file;
 
 #if PHP_VERSION_ID >= 50300
        phar_save_resolve_path = zend_resolve_path;
@@ -3010,14 +2997,6 @@ PHP_MSHUTDOWN_FUNCTION(phar) /* {{{ */
        return php_unregister_url_stream_wrapper("phar" TSRMLS_CC);
        if (zend_compile_file == phar_compile_file) {
                zend_compile_file = phar_orig_compile_file;
-       } else if (zend_hash_exists(&module_registry, "apc", sizeof("apc"))) {
-               zval magic;
-               if (zend_get_constant("\000apc_magic", sizeof("\000apc_magic")-1, &magic TSRMLS_CC)) {
-                       compile_hook *set_compile_hook;
-
-                       set_compile_hook = (compile_hook *) Z_LVAL(magic);
-                       set_compile_hook(NULL);
-               }
        }
 
 #if PHP_VERSION_ID < 50300