RE: [PHP-CVS] cvs: php-src /ext/mysqli mysqli_api.c
| From: | Steph | Date: | Tue, 08 Jun 2004 14:36:58 +0000 |
| Subject: | RE: [PHP-CVS] cvs: php-src /ext/mysqli mysqli_api.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-27589@lists.php.net to get a copy of this message | ||
win32 build's failing now only on one export:
mysqli_prop.obj : error LNK2001: unresolved external symbol
_mysql_stmt_insert_id
Release_TS\php5ts.dll : fatal error LNK1120: 1 unresolved externals
I'm a tad confused by this - mysql_stmt_insert_id is already listed in the
libmysql defs exports, but that only seems to cover the declaration in
mysqli_api.c, and not the mapping in mysqli_prop.c
Clues would be good :)
> -----Original Message-----
> From: Georg Richter [mailto:georg@php.net]
> Sent: 08 June 2004 07:21
> To: php-cvs@lists.php.net
> Subject: [PHP-CVS] cvs: php-src /ext/mysqli mysqli_api.c
>
>
> georg Tue Jun 8 02:20:58 2004 EDT
>
> Modified files:
> /php-src/ext/mysqli mysqli_api.c
> Log:
> fixed crash (changed MYSQL TO MY_MYSQL in mysql_stmt_init)
>
>
>
> http://cvs.php.net/diff.php/php-src/ext/mysqli/mysqli_api.c?r1=1.8
> 3&r2=1.84&ty=u
> Index: php-src/ext/mysqli/mysqli_api.c
> diff -u php-src/ext/mysqli/mysqli_api.c:1.83
> php-src/ext/mysqli/mysqli_api.c:1.84
> --- php-src/ext/mysqli/mysqli_api.c:1.83 Sun Jun 6 04:52:19 2004
> +++ php-src/ext/mysqli/mysqli_api.c Tue Jun 8 02:20:58 2004
> @@ -15,7 +15,7 @@
> | Author: Georg Richter <georg@php.net>
> |
>
> +----------------------------------------------------------------------+
>
> - $Id: mysqli_api.c,v 1.83 2004/06/06 08:52:19 georg Exp $
> + $Id: mysqli_api.c,v 1.84 2004/06/08 06:20:58 georg Exp $
> */
>
> #ifdef HAVE_CONFIG_H
> @@ -1748,7 +1748,7 @@
> */
> PHP_FUNCTION(mysqli_stmt_init)
> {
> - MYSQL *mysql;
> + MY_MYSQL *mysql;
> MY_STMT *stmt;
> zval *mysql_link;
> MYSQLI_RESOURCE *mysqli_resource;
> @@ -1756,11 +1756,11 @@
> if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
> getThis(), "O",&mysql_link, mysqli_link_class_entry) == FAILURE) {
> return;
> }
> - MYSQLI_FETCH_RESOURCE(mysql, MYSQL *, &mysql_link, "mysqli_link");
> + MYSQLI_FETCH_RESOURCE(mysql, MY_MYSQL *, &mysql_link,
> "mysqli_link");
>
> stmt = (MY_STMT *)ecalloc(1,sizeof(MY_STMT));
>
> - if (!(stmt->stmt = mysql_stmt_init(mysql))) {
> + if (!(stmt->stmt = mysql_stmt_init(mysql->mysql))) {
> efree(stmt);
> RETURN_FALSE;
> }
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>