aboutsummaryrefslogtreecommitdiff
path: root/devel/pecl-params/files
diff options
context:
space:
mode:
authorGreg Larkin <glarkin@FreeBSD.org>2010-04-16 23:47:31 +0000
committerGreg Larkin <glarkin@FreeBSD.org>2010-04-16 23:47:31 +0000
commit292e5f4a1d2d08151e09180ad0d567db4f5ea21d (patch)
tree3854c4848cb8fde24d679b17abd9b145f42895b7 /devel/pecl-params/files
parenta40a88e7e82e0ef27a5db1d26dd5d57bd46928b5 (diff)
downloadports-292e5f4a1d2d08151e09180ad0d567db4f5ea21d.tar.gz
ports-292e5f4a1d2d08151e09180ad0d567db4f5ea21d.zip
Notes
Diffstat (limited to 'devel/pecl-params/files')
-rw-r--r--devel/pecl-params/files/patch-php_params.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/pecl-params/files/patch-php_params.c b/devel/pecl-params/files/patch-php_params.c
new file mode 100644
index 000000000000..5785ac587808
--- /dev/null
+++ b/devel/pecl-params/files/patch-php_params.c
@@ -0,0 +1,29 @@
+--- ./php_params.c.orig 2010-04-16 19:41:28.000000000 -0400
++++ ./php_params.c 2010-04-16 19:45:52.000000000 -0400
+@@ -65,7 +65,7 @@
+
+ static inline int php_params_get_args(int *pargc, zval ***pargv TSRMLS_DC)
+ {
+- void **p = EG(argument_stack).top_element - 2;
++ void **p = EG(argument_stack)->top - 2;
+ int pp_arg_count = PHP_PARAMS_INT_CAST *p;
+
+ p -= 1 + pp_arg_count;
+@@ -75,7 +75,7 @@
+ }
+ --p;
+
+- if (p < EG(argument_stack).elements) {
++ if (p < ZEND_VM_STACK_ELEMETS(EG(argument_stack))) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot use this function from the global scope");
+ return FAILURE;
+ }
+@@ -476,7 +476,7 @@
+ /* }}} */
+
+ #ifdef ZEND_ENGINE_2
+-static ZEND_BEGIN_ARG_INFO_EX(params_parse_arginfo, 0, ZEND_RETURN_VALUE, 1)
++ZEND_BEGIN_ARG_INFO_EX(params_parse_arginfo, 0, ZEND_RETURN_VALUE, 1)
+ ZEND_ARG_INFO(0, format)
+ ZEND_END_ARG_INFO()
+ #else