mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
Damn, went to head instead of the branch - revert
This commit is contained in:
parent
6a2d84ba06
commit
afa9e65ff4
1 changed files with 0 additions and 34 deletions
|
@ -100,40 +100,6 @@ int apache_php_module_main(request_rec *r, int display_source_mode TSRMLS_DC)
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* {{{ apache_php_module_hook
|
|
||||||
*/
|
|
||||||
int apache_php_module_hook(request_rec *r, char *filename, zval **ret TSRMLS_DC)
|
|
||||||
{
|
|
||||||
zend_file_handle file_handle;
|
|
||||||
|
|
||||||
#if PHP_SIGCHILD
|
|
||||||
signal(SIGCHLD, sigchld_handler);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (php_request_startup_for_hook(TSRMLS_C) == FAILURE) {
|
|
||||||
return FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Add PHP_SELF_HOOK - Absolute path */
|
|
||||||
php_register_variable("PHP_SELF_HOOK", filename, PG(http_globals)[TRACK_VARS_SERVER] TSRMLS_CC);
|
|
||||||
|
|
||||||
file_handle.type = ZEND_HANDLE_FILENAME;
|
|
||||||
file_handle.handle.fd = 0;
|
|
||||||
file_handle.filename = filename;
|
|
||||||
file_handle.opened_path = NULL;
|
|
||||||
file_handle.free_filename = 0;
|
|
||||||
|
|
||||||
(void) php_execute_simple_script(&file_handle, ret TSRMLS_CC);
|
|
||||||
|
|
||||||
AP(in_request) = 0;
|
|
||||||
|
|
||||||
zend_try {
|
|
||||||
php_request_shutdown_for_hook(NULL);
|
|
||||||
} zend_end_try();
|
|
||||||
|
|
||||||
return (OK);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local variables:
|
* Local variables:
|
||||||
* tab-width: 4
|
* tab-width: 4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue