Diff for /embedaddon/php/ext/pdo/pdo_stmt.c between versions 1.1.1.2 and 1.1.1.5

version 1.1.1.2, 2012/05/29 12:34:40 version 1.1.1.5, 2014/06/15 20:03:51
Line 2 Line 2
   +----------------------------------------------------------------------+    +----------------------------------------------------------------------+
   | PHP Version 5                                                        |    | PHP Version 5                                                        |
   +----------------------------------------------------------------------+    +----------------------------------------------------------------------+
  | Copyright (c) 1997-2012 The PHP Group                                |  | Copyright (c) 1997-2014 The PHP Group                                |
   +----------------------------------------------------------------------+    +----------------------------------------------------------------------+
   | This source file is subject to version 3.01 of the PHP license,      |    | This source file is subject to version 3.01 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |    | that is bundled with this package in the file LICENSE, and is        |
Line 1146  static int do_fetch(pdo_stmt_t *stmt, int do_bind, zva Line 1146  static int do_fetch(pdo_stmt_t *stmt, int do_bind, zva
                                                         zval_ptr_dtor(&val);                                                          zval_ptr_dtor(&val);
                                                         pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "cannot unserialize class" TSRMLS_CC);                                                          pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "cannot unserialize class" TSRMLS_CC);
                                                         return 0;                                                          return 0;
                                                } else if (ce->unserialize(&return_value, ce, Z_TYPE_P(val) == IS_STRING ? Z_STRVAL_P(val) : "", Z_TYPE_P(val) == IS_STRING ? Z_STRLEN_P(val) : 0, NULL TSRMLS_CC) == FAILURE) {                                                } else if (ce->unserialize(&return_value, ce, (unsigned char *)(Z_TYPE_P(val) == IS_STRING ? Z_STRVAL_P(val) : ""), Z_TYPE_P(val) == IS_STRING ? Z_STRLEN_P(val) : 0, NULL TSRMLS_CC) == FAILURE) {
                                                         zval_ptr_dtor(&val);                                                          zval_ptr_dtor(&val);
                                                         pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "cannot unserialize class" TSRMLS_CC);                                                          pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "cannot unserialize class" TSRMLS_CC);
                                                         zval_dtor(return_value);                                                          zval_dtor(return_value);
Line 1876  static PHP_METHOD(PDOStatement, getColumnMeta) Line 1876  static PHP_METHOD(PDOStatement, getColumnMeta)
 int pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int skip)  int pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int skip)
 {  {
         long mode = PDO_FETCH_BOTH;          long mode = PDO_FETCH_BOTH;
        int flags, argc = ZEND_NUM_ARGS() - skip;        int flags = 0, argc = ZEND_NUM_ARGS() - skip;
         zval ***args;          zval ***args;
         zend_class_entry **cep;          zend_class_entry **cep;
         int retval;          int retval;

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.5


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>