php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2382 ext/dav.c pre-zend calls, Part II. Suggested fix.
Submitted: 1999-09-25 07:00 UTC Modified: 2000-05-30 19:32 UTC
From: gjh at bel-epa dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Beta 2 OS: Linux 2.2 x86
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gjh at bel-epa dot com
New email:
PHP Version: OS:

 

 [1999-09-25 07:00 UTC] gjh at bel-epa dot com
*** 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;

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-30 19:32 UTC] rasmus at cvs dot php dot net
The DAV support in PHP needs to be completely rewritten.  Everything has changed.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Dec 06 02:00:02 2026 UTC