version 1.1.1.3, 2013/07/22 01:31:55
|
version 1.1.1.4, 2014/06/15 20:03:51
|
Line 2
|
Line 2
|
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| PHP Version 5 | |
| PHP Version 5 | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| Copyright (c) 1997-2013 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 384 mysqli_stmt_bind_result_do_bind(MY_STMT *stmt, zval **
|
Line 384 mysqli_stmt_bind_result_do_bind(MY_STMT *stmt, zval **
|
/* Changed to my_bool in MySQL 5.1. See MySQL Bug #16144 */ |
/* Changed to my_bool in MySQL 5.1. See MySQL Bug #16144 */ |
my_bool tmp; |
my_bool tmp; |
#else |
#else |
uint tmp = 0; | ulong tmp = 0; |
#endif |
#endif |
stmt->result.buf[ofs].type = IS_STRING; |
stmt->result.buf[ofs].type = IS_STRING; |
/* |
/* |
Line 1840 PHP_FUNCTION(mysqli_prepare)
|
Line 1840 PHP_FUNCTION(mysqli_prepare)
|
efree(stmt); |
efree(stmt); |
RETURN_FALSE; |
RETURN_FALSE; |
} |
} |
|
#ifndef MYSQLI_USE_MYSQLND |
|
stmt->link_handle = Z_OBJ_HANDLE(*mysql_link); |
|
zend_objects_store_add_ref_by_handle(stmt->link_handle TSRMLS_CC); |
|
#endif |
|
|
mysqli_resource = (MYSQLI_RESOURCE *)ecalloc (1, sizeof(MYSQLI_RESOURCE)); |
mysqli_resource = (MYSQLI_RESOURCE *)ecalloc (1, sizeof(MYSQLI_RESOURCE)); |
mysqli_resource->ptr = (void *)stmt; |
mysqli_resource->ptr = (void *)stmt; |
Line 2368 PHP_FUNCTION(mysqli_stmt_init)
|
Line 2372 PHP_FUNCTION(mysqli_stmt_init)
|
efree(stmt); |
efree(stmt); |
RETURN_FALSE; |
RETURN_FALSE; |
} |
} |
|
#ifndef MYSQLI_USE_MYSQLND |
|
stmt->link_handle = Z_OBJ_HANDLE(*mysql_link); |
|
zend_objects_store_add_ref_by_handle(stmt->link_handle TSRMLS_CC); |
|
#endif |
|
|
mysqli_resource = (MYSQLI_RESOURCE *)ecalloc (1, sizeof(MYSQLI_RESOURCE)); |
mysqli_resource = (MYSQLI_RESOURCE *)ecalloc (1, sizeof(MYSQLI_RESOURCE)); |
mysqli_resource->status = MYSQLI_STATUS_INITIALIZED; |
mysqli_resource->status = MYSQLI_STATUS_INITIALIZED; |