Hi

Here's a patch that updates debug_backtrace() somewhat as requested in
bug/feature-request: #34421

The patch also adds 2 new builtin functions: get_scope() and is_static().

I hope this can be of use to someone and would like to contribute this patch.

Contents of patch:
-rw-r--r-- thomas/thomas  4221 Dec 22 08:01 2005
zend_builtin_functions.c.patch
-rw-r--r-- thomas/thomas   330 Dec 22 08:01 2005 zend_compile.h.patch
-rw-r--r-- thomas/thomas   787 Dec 22 08:01 2005 zend_execute.h.patch
-rw-r--r-- thomas/thomas  3978 Dec 22 08:01 2005 zend_vm_execute.h.patch
-rw-r--r-- thomas/thomas   769 Dec 22 08:02 2005 README



Modified in archive php-5.1.1.tar.gz (through danish mirror) downloaded on
approx. Dec. 19 16:00


Description of files and updates:
zend_builtin_functions.c        /* $Id: zend_builtin_functions.c,v 1.277.2.6
2005/11/24 05:07:27 sebastian Exp $ */
   added get_scope()
   added is_static()
   updated debug_backtrace() to include "scope" variable in return array
   updated debug_print_backtrace() to print scope instead of class
(warning potential BC-issue)

zend_compile.h                  /* $Id: zend_compile.h,v 1.316.2.5 2005/10/20 
07:30:42
dmitry Exp $ */
   added "zend_class_entry *scope" to executor globals

zend_execute.h                  /* $Id: zend_execute.h,v 1.84.2.3 2005/09/19 
17:50:24
dmitry Exp $ */
   added "#define Z_OBJ_CLASS_P"

zend_vm_execute.h               No version number in file?
   added update of executor global scope

known bugs:
   none so far ...




Med venlig hilsen, Best regards

Thomas Gielfeldt

Attachment: patch.tar.gz
Description: application/compressed-tar

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to