php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch zend_objects_get_address for Variables related Bug #64146

Patch version 2013-02-07 22:57 UTC

Return to Bug #64146 | Download this patch
Patch Revisions:

Developer: mike@php.net

diff --git a/ext/standard/var.c b/ext/standard/var.c
index a4fa262..c6ebe18 100644
--- a/ext/standard/var.c
+++ b/ext/standard/var.c
@@ -553,7 +553,7 @@ static inline int php_add_var_hash(HashTable *var_hash, zval *var, void *var_old
 	 * however the actual identity of an object has had to be determined
 	 * by its object handle since 5.0. */
 	if ((Z_TYPE_P(var) == IS_OBJECT) && Z_OBJ_HT_P(var)->get_class_entry) {
-		p = smart_str_print_long(id + sizeof(id) - 1, (long) Z_OBJ_HANDLE_P(var));
+		p = smart_str_print_long(id + sizeof(id) - 1, (long) zend_objects_get_address(var TSRMLS_CC));
 		*(--p) = 'O';
 		len = id + sizeof(id) - 1 - p;
 	} else {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 16:01:29 2024 UTC