Commits

5lava  committed 93281d1

Fix: made php 5.5.0-compatible

  • Participants
  • Parent commits 182c23f

Comments (0)

Files changed (1)

 /* }}} */
 
 /* {{{ php_ev_get_property_ptr_ptr */
-static zval **php_ev_get_property_ptr_ptr(zval *object, zval *member, const zend_literal *key TSRMLS_DC)
+#if PHP_VERSION_ID >= 50500
+static zval **php_ev_get_property_ptr_ptr(zval *object, zval *member, int type, const zend_literal *key TSRMLS_DC)
+#else
+static zval **get_property_ptr_ptr(zval *object, zval *member, const zend_literal *key TSRMLS_DC)
+#endif
 {
 	php_ev_object        *obj;
 	zval                  tmp_member;
 	}
 
 	if (ret == FAILURE) {
-		retval = zend_get_std_object_handlers()->get_property_ptr_ptr(object, member, key TSRMLS_CC);
+#if PHP_VERSION_ID >= 50500
+		retval = zend_get_std_object_handlers()->get_property_ptr_ptr(object, member, type, key TSRMLS_CC);
+#else
+		retval = zend_get_std_object_handlers()->get_property_ptr_ptr(object, member, ZEND_GET_PPTR_TYPE_CC key TSRMLS_CC);
+#endif
+
 	} else if (hnd->get_ptr_ptr_func) {
 		retval = hnd->get_ptr_ptr_func(obj TSRMLS_CC);
 	}