Skip to content

Instantly share code, notes, and snippets.

@libnex
Created September 14, 2016 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save libnex/af84816a3b9632a474f8f6e263b9d711 to your computer and use it in GitHub Desktop.
Save libnex/af84816a3b9632a474f8f6e263b9d711 to your computer and use it in GitHub Desktop.
Patch to fix bug when turning off Fast_ZPP (php 7.0.10)
--- php-7.0.10/ext/standard/streamsfuncs.c 2016-08-18 07:51:43.000000000 +1200
+++ streamsfuncs.c 2016-09-03 12:32:04.000000000 +1200
@@ -996,7 +996,7 @@
zval *options;
#ifndef FAST_ZPP
- if (zend_parse_parameters(, ZEND_NUM_ARGS(), "ra", &zcontext, &options) == FAILURE) {
+ if (zend_parse_parameters( ZEND_NUM_ARGS(), "ra", &zcontext, &options) == FAILURE) {
RETURN_FALSE;
}
#else
@@ -1511,7 +1511,7 @@
zend_bool enable, cryptokindnull;
int ret;
-#ifdef FAST_ZPP
+#ifndef FAST_ZPP
if (zend_parse_parameters(ZEND_NUM_ARGS(), "rb|l!r", &zstream, &enable, &cryptokind, &cryptokindnull, &zsessstream) == FAILURE) {
RETURN_FALSE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment