svn: /php/php-src/ branches/PHP_5_3/ext/mysqli/tests/bug48909.phpt trunk/ext/mysqli/tests/bug48909.phpt

From: Date: Tue, 08 Jun 2010 14:57:10 +0000
Subject: svn: /php/php-src/ branches/PHP_5_3/ext/mysqli/tests/bug48909.phpt trunk/ext/mysqli/tests/bug48909.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-62841@lists.php.net to get a copy of this message
uw Tue, 08 Jun 2010 14:57:10 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=300280 Log: Portability improvement Changed paths: U php/php-src/branches/PHP_5_3/ext/mysqli/tests/bug48909.phpt U php/php-src/trunk/ext/mysqli/tests/bug48909.phpt Modified: php/php-src/branches/PHP_5_3/ext/mysqli/tests/bug48909.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/mysqli/tests/bug48909.phpt 2010-06-08 14:29:05 UTC (rev 300279) +++ php/php-src/branches/PHP_5_3/ext/mysqli/tests/bug48909.phpt 2010-06-08 14:57:10 UTC (rev 300280) @@ -23,8 +23,15 @@ if (!$stmt->bind_param("bb",$bvar, $bvar)) printf("[004] [%d] %s\n", $stmt->errno, $stmt->error); - if (!$stmt->execute()) - printf("[005] [%d] %s\n", $stmt->errno, $stmt->error); + if (!$stmt->execute()) { + if ($stmt->errno != 1366) { + /* + $bvar is null, b is for BLOB - any error like this should be OK: + 1366 - Incorrect integer value: '' for column 'id' at row 1 + */ + printf("[005] [%d] %s\n", $stmt->errno, $stmt->error); + } + } $stmt->close(); $link->close(); Modified: php/php-src/trunk/ext/mysqli/tests/bug48909.phpt =================================================================== --- php/php-src/trunk/ext/mysqli/tests/bug48909.phpt 2010-06-08 14:29:05 UTC (rev 300279) +++ php/php-src/trunk/ext/mysqli/tests/bug48909.phpt 2010-06-08 14:57:10 UTC (rev 300280) @@ -23,8 +23,15 @@ if (!$stmt->bind_param("bb",$bvar, $bvar)) printf("[004] [%d] %s\n", $stmt->errno, $stmt->error); - if (!$stmt->execute()) - printf("[005] [%d] %s\n", $stmt->errno, $stmt->error); + if (!$stmt->execute()) { + if ($stmt->errno != 1366) { + /* + $bvar is null, b is for BLOB - any error like this should be OK: + 1366 - Incorrect integer value: '' for column 'id' at row 1 + */ + printf("[005] [%d] %s\n", $stmt->errno, $stmt->error); + } + } $stmt->close(); $link->close();

« previous php.cvs (#62841) next »