padding = 3;
}
if(params) {
+ HashPosition *param_pos;
zend_hash_internal_pointer_reset(params);
- while (SUCCESS == zend_hash_get_current_data(params, (void**)¶m)) {
+ while ((param == zend_hash_get_current_data_ptr_ex(params, ¶m_pos)) != NULL) {
if(param->parameter) {
convert_to_string(param->parameter);
/* accommodate a string that needs to be fully quoted
}
/* lookup bind first via hash and then index */
/* stupid keys need to be null-terminated, even though we know their length */
- if((SUCCESS == zend_hash_find(params, s.tok, s.cur-s.tok,(void **)¶m))
+ if((NULL != zend_hash_find(params, s.tok, s.cur-s.tok,(void **)¶m))
||
- (SUCCESS == zend_hash_index_find(params, bindno, (void **)¶m)))
+ (NULL != zend_hash_index_find(params, bindno, (void **)¶m)))
{
char *quotedstr;
int quotedstrlen;
return (int) (s.cur - inquery);
}
/* lookup bind by index */
- if(SUCCESS == zend_hash_index_find(params, bindno, (void **)¶m))
+ if(NULL != zend_hash_index_find(params, bindno, (void **)¶m))
{
char *quotedstr;
int quotedstrlen;