com php-src: Fix one zpp usage in interbase: README.PARAMETER _PARSING_API ext/interbase/interbase.c
| From: | Nikita Popov | Date: | Thu, 03 Mar 2016 22:50:02 +0000 |
| Subject: | com php-src: Fix one zpp usage in interbase: README.PARAMETER _PARSING_API ext/interbase/interbase.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91275@lists.php.net to get a copy of this message | ||
Commit: a7028d96719fef1939eb3bf14ddb05491ef4e09f
Author: Tjerk Meesters <datibbaw@php.net> Thu, 3 Mar 2016 23:48:45 +0100
Committer: Nikita Popov <nikic@php.net> Thu, 3 Mar 2016 23:50:02 +0100
Parents: 5602f6421372848a6fbb23fbe6bbca47d94dd49a
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a7028d96719fef1939eb3bf14ddb05491ef4e09f
Log:
Fix one zpp usage in interbase
Also small tweak to zpp REAME
Changed paths:
M README.PARAMETER_PARSING_API
M ext/interbase/interbase.c
Diff:
diff --git a/README.PARAMETER_PARSING_API b/README.PARAMETER_PARSING_API
index c344817..7f3da76 100644
--- a/README.PARAMETER_PARSING_API
+++ b/README..PARAMETER_PARSING_API
@@ -63,10 +63,10 @@ Type specifiers
o - object of any type (zval*)
O - object of specific type given by class entry (zval*, zend_class_entry)
p - valid path (string without null bytes in the middle) and its length (char*, size_t)
- P - valid path (string without null bytes in the middle) as zend_string (zend_string)
+ P - valid path (string without null bytes in the middle) as zend_string (zend_string*)
r - resource (zval*)
s - string (with possible null bytes) and its length (char*, size_t)
- S - string (with possible null bytes) as zend_string (zend_string)
+ S - string (with possible null bytes) as zend_string (zend_string*)
z - the actual zval (zval*)
* - variable arguments list (0 or more)
+ - variable arguments list (1 or more)
diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c
index d1174cf..3f9ac58 100644
--- a/ext/interbase/interbase.c
+++ b/ext/interbase/interbase.c
@@ -884,7 +884,8 @@ int _php_ibase_attach_db(char **args, int *len, zend_long *largs, isc_db_handle
static void _php_ibase_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) /* {{{ */
{
char *c, hash[16], *args[] = { NULL, NULL, NULL, NULL, NULL };
- int i, len[] = { 0, 0, 0, 0, 0 };
+ int i;
+ size_t len[] = { 0, 0, 0, 0, 0 };
zend_long largs[] = { 0, 0, 0 };
PHP_MD5_CTX hash_context;
zend_resource new_index_ptr, *le;