]> git.pld-linux.org Git - packages/php.git/blob - php-5.3.7-bug-52104.patch
use /usr/sbin/php-fpm as other branches
[packages/php.git] / php-5.3.7-bug-52104.patch
1 --- PHP_5_3/ext/pdo/pdo_stmt.c  2011/06/01 12:53:07     311710
2 +++ PHP_5_3/ext/pdo/pdo_stmt.c  2011/06/01 13:23:25     311711
3 @@ -349,7 +349,10 @@
4                 /* if you prepare and then execute passing an array of params keyed by names,
5                  * then this will trigger, and we don't want that */
6                 if (param->paramno == -1) {
7 -                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Did not found column name '%s' in the defined columns; it will not be bound", param->name);
8 +                       char *tmp;
9 +                       spprintf(&tmp, 0, "Did not find column name '%s' in the defined columns; it will not be bound", param->name);
10 +                       pdo_raise_impl_error(stmt->dbh, stmt, "HY000", tmp TSRMLS_CC);
11 +                       efree(tmp);
12                 }
13         }
14  
This page took 0.026363 seconds and 3 git commands to generate.