Skip to content

Commit

Permalink
Fix one zpp usage in interbase
Browse files Browse the repository at this point in the history
Also small tweak to zpp REAME
  • Loading branch information
datibbaw authored and nikic committed Mar 3, 2016
1 parent 5602f64 commit a7028d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.PARAMETER_PARSING_API
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion ext/interbase/interbase.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a7028d9

Please sign in to comment.