# [PATCH] - Regarding bug/feature-request: #34421

- Thread: https://externals.io/message/21318
- Original archive: https://news-web.php.net/php.internals/21318
- Started by Thomas Gielfeldt on 2005-12-22T09:35:50+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #21318 — Thomas Gielfeldt — 2005-12-22T09:35:50+00:00

URL: https://externals.io/message/21318#21318

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

---

## #21460 — thomas — 2006-01-10T11:54:28+00:00

URL: https://externals.io/message/21318#21460 · In reply to: #21318

Hi

Is it possible for someone to take a look at this? Can i get some
feedback perhaps?

Br,

Thomas

"Thomas Gielfeldt" wrote:

> 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
