diff options
| author | Ulf Wendel <uw@php.net> | 2010-02-02 13:10:50 +0000 |
|---|---|---|
| committer | Ulf Wendel <uw@php.net> | 2010-02-02 13:10:50 +0000 |
| commit | 7c7d7ac1fa00954d431ca04acb39181f59b2f2a7 (patch) | |
| tree | f3bb6652901c8ff6db6d2e086e7ece9e85c3ff20 /ext | |
| parent | 18f8fa7ba3092dd08fe4903a1a0c196b76b17928 (diff) | |
| download | php-git-7c7d7ac1fa00954d431ca04acb39181f59b2f2a7.tar.gz | |
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.
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/mysqli/tests/mysqli_errno_oo.phpt | 4 | ||||
| -rw-r--r-- | ext/mysqli/tests/mysqli_error_oo.phpt | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/mysqli/tests/mysqli_errno_oo.phpt b/ext/mysqli/tests/mysqli_errno_oo.phpt index bef4a607eb..5d5ea25089 100644 --- a/ext/mysqli/tests/mysqli_errno_oo.phpt +++ b/ext/mysqli/tests/mysqli_errno_oo.phpt @@ -14,8 +14,8 @@ require_once('skipifconnectfailure.inc'); $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", diff --git a/ext/mysqli/tests/mysqli_error_oo.phpt b/ext/mysqli/tests/mysqli_error_oo.phpt index 31716d9aaf..1f0589679d 100644 --- a/ext/mysqli/tests/mysqli_error_oo.phpt +++ b/ext/mysqli/tests/mysqli_error_oo.phpt @@ -14,8 +14,8 @@ require_once('skipifconnectfailure.inc'); $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", |
