]> granicus.if.org Git - php/commitdiff
revert previous pdo patch
authorIlia Alshanetsky <iliaa@php.net>
Tue, 20 Nov 2007 23:27:56 +0000 (23:27 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 20 Nov 2007 23:27:56 +0000 (23:27 +0000)
ext/pdo/pdo_stmt.c

index 35cd8a24991da82ade06b0218266158d60929d45..f1059948ae106aaa92e501f456fd8fb52657ba21 100755 (executable)
@@ -144,11 +144,6 @@ static int dispatch_param_event(pdo_stmt_t *stmt, enum pdo_param_event event_typ
 
 iterate:
        if (ht) {
-               if (zend_hash_num_elements(stmt->bound_param_map) != zend_hash_num_elements(ht)) {
-                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Number of bound paramters %d does not match number of bound values %d", zend_hash_num_elements(stmt->bound_param_map), zend_hash_num_elements(ht));
-                       return 0;       
-               }
-
                zend_hash_internal_pointer_reset(ht);
                while (SUCCESS == zend_hash_get_current_data(ht, (void**)&param)) {
                        if (!stmt->methods->param_hook(stmt, param, event_type TSRMLS_CC)) {