diff -Nura vle.orig/vld.c vle/vld.c --- vle.orig/vld.c 2005-01-19 15:36:00.000000000 +0100 +++ vle/vld.c 2005-10-20 22:10:15.386559496 +0200 @@ -96,8 +96,6 @@ { ZEND_INIT_MODULE_GLOBALS(vld, vld_init_globals, NULL); REGISTER_INI_ENTRIES(); - old_compile_file = zend_compile_file; - old_execute = zend_execute; return SUCCESS; } @@ -107,9 +105,6 @@ { UNREGISTER_INI_ENTRIES(); - zend_compile_file = old_compile_file; - zend_execute = old_execute; - return SUCCESS; } @@ -117,6 +112,9 @@ PHP_RINIT_FUNCTION(vld) { + old_compile_file = zend_compile_file; + old_execute = zend_execute; + if (VLD_G(active)) { zend_compile_file = vld_compile_file; if (!VLD_G(execute)) {