]> granicus.if.org Git - php/commitdiff
Set correct Win32 line endings and fix ZTS compilation
authorFrank M. Kromann <fmk@php.net>
Wed, 19 May 2004 18:04:47 +0000 (18:04 +0000)
committerFrank M. Kromann <fmk@php.net>
Wed, 19 May 2004 18:04:47 +0000 (18:04 +0000)
ext/pdo/pdo_dbh.c

index 3151712aa22d3f16b1a33b82782450920daf2dc0..b53637ef1685ff8d6e2ae933cf39f64881944be8 100755 (executable)
@@ -290,7 +290,7 @@ static PHP_METHOD(PDO, affectedRows)
        if (!dbh->methods->affected) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "This driver affected rows retrieval.");
        } else {
-               RETURN_LONG(dbh->methods->affected(dbh));
+               RETURN_LONG(dbh->methods->affected(dbh TSRMLS_CC));
        }
 }
 /* }}} */
@@ -308,7 +308,7 @@ static PHP_METHOD(PDO, lastInsertId)
        if (!dbh->methods->last_id) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "This driver last inserted id retrieval.");
        } else {
-               RETURN_LONG(dbh->methods->last_id(dbh));
+               RETURN_LONG(dbh->methods->last_id(dbh TSRMLS_CC));
        }
 }
 /* }}} */