php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30890 MySQLi testsuite needs work
Submitted: 2004-11-25 03:17 UTC Modified: 2004-12-04 10:04 UTC
From: webmaster at ragnarokonline dot de Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 5.0.2 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: webmaster at ragnarokonline dot de
New email:
PHP Version: OS:

 

 [2004-11-25 03:17 UTC] webmaster at ragnarokonline dot de
Description:
------------
The MySQLi-testsuite in ext/mysqli/tests needs some work.

When I'm running
TEST_PHP_EXECUTABLE=sapi/cli/php \
sapi/cli/php run-tests.php \
ext/mysqli/tests
nearly every test fails (or every test?), because something like 
--SKIPIF--
<?php include 'skipif.inc'; ?>
is missing, so I have to edit the connect.inc.
If I do, the following tests fail:
mysqli connect [ext/mysqli/tests/001.phpt]
mysqli connect [ext/mysqli/tests/003.phpt]
mysqli fetch functions [ext/mysqli/tests/017.phpt]
mysqli bind_param/bind_result date [ext/mysqli/tests/020.phpt]
mysqli bind_param/bind_result with send_long_data [ext/mysqli/tests/026.phpt]
function test: mysqli_stat [ext/mysqli/tests/027.phpt]
function test: mysqli_character_set_name [ext/mysqli/tests/028.phpt]
function test: mysqli_affected_rows [ext/mysqli/tests/029.phpt]
function test: mysqli_errno [ext/mysqli/tests/030.phpt]
function test: mysqli_error [ext/mysqli/tests/031.phpt]
function test: mysqli_info [ext/mysqli/tests/032.phpt]
function test: mysqli_get_host_info [ext/mysqli/tests/033.phpt]
function test: mysqli_get_proto_info [ext/mysqli/tests/034.phpt]
function test: mysqli_get_server_info [ext/mysqli/tests/035.phpt]
mysql_fetch_row (OO-Style) [ext/mysqli/tests/049.phpt]
local infile handler [ext/mysqli/tests/061.phpt]
constructor test [ext/mysqli/tests/bug29311.phpt]

Reasons:
mysqli connect [ext/mysqli/tests/001.phpt],
mysqli bind_param/bind_result with send_long_data [ext/mysqli/tests/026.phpt],
function test: mysqli_stat [ext/mysqli/tests/027.phpt],
function test: mysqli_character_set_name [ext/mysqli/tests/028.phpt],
function test: mysqli_affected_rows [ext/mysqli/tests/029.phpt],
function test: mysqli_errno [ext/mysqli/tests/030.phpt],
function test: mysqli_error [ext/mysqli/tests/031.phpt],
function test: mysqli_info [ext/mysqli/tests/032.phpt],
function test: mysqli_get_host_info [ext/mysqli/tests/033.phpt],
function test: mysqli_get_proto_info [ext/mysqli/tests/034.phpt],
function test: mysqli_get_server_info [ext/mysqli/tests/035.phpt] and
constructor test [ext/mysqli/tests/bug29311.phpt]
--> $host, $user, $passwd is hardcoded

mysqli connect [ext/mysqli/tests/017.phpt] and
mysql_fetch_row (OO-Style) [ext/mysqli/tests/049.phpt]
--> CURRENT_USER() is hardcoded ('root@localhost') in expected result

mysqli connect [ext/mysqli/tests/003.phpt] and
mysqli bind_param/bind_result date [ext/mysqli/tests/020.phpt]
--> expected result wrong, diff:
013+   string(19) "0000-00-00 00:00:00"
013-   string(0) ""

I have no idea, what went wrong in
local infile handler [ext/mysqli/tests/061.phpt]


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-04 10:04 UTC] georg@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC