Skip to content

Commit a7028d9

Browse files
datibbawnikic
authored andcommittedMar 3, 2016
Fix one zpp usage in interbase
Also small tweak to zpp REAME
1 parent 5602f64 commit a7028d9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎README.PARAMETER_PARSING_API

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ Type specifiers
6363
o - object of any type (zval*)
6464
O - object of specific type given by class entry (zval*, zend_class_entry)
6565
p - valid path (string without null bytes in the middle) and its length (char*, size_t)
66-
P - valid path (string without null bytes in the middle) as zend_string (zend_string)
66+
P - valid path (string without null bytes in the middle) as zend_string (zend_string*)
6767
r - resource (zval*)
6868
s - string (with possible null bytes) and its length (char*, size_t)
69-
S - string (with possible null bytes) as zend_string (zend_string)
69+
S - string (with possible null bytes) as zend_string (zend_string*)
7070
z - the actual zval (zval*)
7171
* - variable arguments list (0 or more)
7272
+ - variable arguments list (1 or more)

‎ext/interbase/interbase.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,8 @@ int _php_ibase_attach_db(char **args, int *len, zend_long *largs, isc_db_handle
884884
static void _php_ibase_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) /* {{{ */
885885
{
886886
char *c, hash[16], *args[] = { NULL, NULL, NULL, NULL, NULL };
887-
int i, len[] = { 0, 0, 0, 0, 0 };
887+
int i;
888+
size_t len[] = { 0, 0, 0, 0, 0 };
888889
zend_long largs[] = { 0, 0, 0 };
889890
PHP_MD5_CTX hash_context;
890891
zend_resource new_index_ptr, *le;

0 commit comments

Comments
 (0)