uw Tue, 02 Feb 2010 13:10:50 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=294337
Log: No idea which recent change has cause this little API change, however it is not a big change and maybe it is even an improvement. Changed paths: U php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_errno_oo.phpt U php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_error_oo.phpt U php/php-src/trunk/ext/mysqli/tests/mysqli_errno_oo.phpt U php/php-src/trunk/ext/mysqli/tests/mysqli_error_oo.phpt Modified: php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_errno_oo.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_errno_oo.phpt 2010-02-02 13:08:11 UTC (rev 294336) +++ php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_errno_oo.phpt 2010-02-02 13:10:50 UTC (rev 294337) @@ -14,8 +14,8 @@ $link = NULL; $mysqli = new mysqli(); - if (!is_null($tmp = @$mysqli->errno)) - printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); + if (0 !== ($tmp = @$mysqli->errno)) + printf("[001] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket)) printf("[002] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n", Modified: php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_error_oo.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_error_oo.phpt 2010-02-02 13:08:11 UTC (rev 294336) +++ php/php-src/branches/PHP_5_3/ext/mysqli/tests/mysqli_error_oo.phpt 2010-02-02 13:10:50 UTC (rev 294337) @@ -14,8 +14,8 @@ $link = NULL; $mysqli = new mysqli(); - if (!is_null($tmp = @$mysqli->error)) - printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); + if ('' !== ($tmp = @$mysqli->error)) + printf("[001] Expecting empty string, got %s/'%s'\n", gettype($tmp), $tmp); if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket)) printf("[002] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n", Modified: php/php-src/trunk/ext/mysqli/tests/mysqli_errno_oo.phpt =================================================================== --- php/php-src/trunk/ext/mysqli/tests/mysqli_errno_oo.phpt 2010-02-02 13:08:11 UTC (rev 294336) +++ php/php-src/trunk/ext/mysqli/tests/mysqli_errno_oo.phpt 2010-02-02 13:10:50 UTC (rev 294337) @@ -14,8 +14,8 @@ $link = NULL; $mysqli = new mysqli(); - if (!is_null($tmp = @$mysqli->errno)) - printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); + if (0 !== ($tmp = @$mysqli->errno)) + printf("[001] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket)) printf("[002] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n", Modified: php/php-src/trunk/ext/mysqli/tests/mysqli_error_oo.phpt =================================================================== --- php/php-src/trunk/ext/mysqli/tests/mysqli_error_oo.phpt 2010-02-02 13:08:11 UTC (rev 294336) +++ php/php-src/trunk/ext/mysqli/tests/mysqli_error_oo.phpt 2010-02-02 13:10:50 UTC (rev 294337) @@ -14,8 +14,8 @@ $link = NULL; $mysqli = new mysqli(); - if (!is_null($tmp = @$mysqli->error)) - printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); + if ('' !== ($tmp = @$mysqli->error)) + printf("[001] Expecting empty string, got %s/'%s'\n", gettype($tmp), $tmp); if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket)) printf("[002] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php