PHP 4.0 Bug #2382: ext/dav.c pre-zend calls, Part II. Suggested fix.

From: Date: Sat, 25 Sep 1999 11:00:28 +0000
Subject: PHP 4.0 Bug #2382: ext/dav.c pre-zend calls, Part II. Suggested fix.
Groups: php.dev 
Request: Send a blank email to php-dev+get-11284@lists.php.net to get a copy of this message
From: gjh@bel-epa.com Operating system: Linux 2.2 x86 PHP version: 4.0 Beta 2 PHP Bug Type: Compile Failure Bug description: ext/dav.c pre-zend calls, Part II. Suggested fix. *** dav.c.cvs Sat Sep 25 11:50:10 1999 --- dav.c Sat Sep 25 11:52:34 1999 *************** *** 215,222 **** func = php3i_string_pval(funcName); retval = emalloc(sizeof(pval)); ! function_table = php3i_get_function_table(); ! if (call_user_function(function_table, NULL, func, retval, argc, argv) == FAILURE) { php3tls_pval_destructor(retval); efree(retval); return HTTP_INTERNAL_SERVER_ERROR; --- 231,243 ---- func = php3i_string_pval(funcName); retval = emalloc(sizeof(pval)); ! ! /* php3i_get_function_table has gone away and left no fowarding address .... ! function_table = php3i_get_function_table(); ! so, by xml_call_handler .... ! */ ! ! if (call_user_function(EG(function_table), NULL, func, retval, argc, argv) == FAILURE) { php3tls_pval_destructor(retval); efree(retval); return HTTP_INTERNAL_SERVER_ERROR;

« previous php.dev (#11284) next »