freebsd-ports/devel/pecl-runkit/files/patch-runkit_import.c
Greg Larkin e1942a0580 - Unbreak after recent PHP 5.3.2 upgrade
Reported by:	pointyhat
Approved by:	portmgr (itetcu, erwin - blanket)
2010-04-13 04:09:26 +00:00

13 lines
571 B
C

--- ./runkit_import.c.orig 2006-06-06 17:06:08.000000000 -0400
+++ ./runkit_import.c 2010-04-13 00:04:47.000000000 -0400
@@ -226,7 +226,9 @@
if (zend_hash_get_current_key_ex(&ce->default_properties, &key, &key_len, &idx, 0, &pos) == HASH_KEY_IS_STRING) {
char *cname = NULL, *pname = key;
-#ifdef ZEND_ENGINE_2
+#ifdef ZEND_ENGINE_2_2
+ zend_unmangle_property_name(key, key_len - 1, &cname, &pname);
+#elif defined(ZEND_ENGINE_2)
zend_unmangle_property_name(key, &cname, &pname);
#endif
if (zend_hash_exists(&dce->default_properties, key, key_len)) {