]> granicus.if.org Git - php/commitdiff
ZVAL_STRINGL takes only three variables
authorLior Kaplan <kaplanlior@gmail.com>
Tue, 22 Jul 2014 11:13:12 +0000 (14:13 +0300)
committerLior Kaplan <kaplanlior@gmail.com>
Tue, 22 Jul 2014 16:38:35 +0000 (19:38 +0300)
Follow up for commit f4cfaf36

ext/openssl/openssl.c
ext/standard/scanf.c

index ed13bae12ce2298f5c2b5354332700ca674ebdc0..b0b23fe5d7eb6f7ef8c0dba854b7c85ca61f92f6 100755 (executable)
@@ -4867,7 +4867,7 @@ PHP_FUNCTION(openssl_seal)
                zval_dtor(*ivec);
                if (ivlen) {
                        iv[ivlen] = '\0';
-                       ZVAL_STRINGL(*ivec, erealloc(iv, ivlen + 1), ivlen, 0);
+                       ZVAL_STRINGL(*ivec, erealloc(iv, ivlen + 1), ivlen);
                } else {
                        ZVAL_EMPTY_STRING(*ivec);
                }
index ef3fe2969cc7d17319009c585dafcb91ca0b37ef..f5f97161f2b3a04941e6cbf0d879b0c8d69f3fb1 100644 (file)
@@ -925,7 +925,7 @@ literal:
                                                __buf[1] = '\0';;
                                                current = args[objIndex++];
                                                zval_dtor(*current);
-                                               ZVAL_STRINGL( *current, __buf, 1, 1);
+                                               ZVAL_STRINGL( *current, __buf, 1);
                                        } else {
                                                add_index_stringl(return_value, objIndex++, &sch, 1);
                                        }