Author: uwendel
Date: 2007-07-12 12:02:37 +0200 (Thu, 12 Jul 2007)
New Revision: 723
Modified:
trunk/tests/ext/mysqli/mysqli_constants.phpt
Log:
Of course UNICODE flags make only sense for PHP 6.0+
Modified: trunk/tests/ext/mysqli/mysqli_constants.phpt
===================================================================
--- trunk/tests/ext/mysqli/mysqli_constants.phpt 2007-07-11 21:23:20 UTC (rev 722)
+++ trunk/tests/ext/mysqli/mysqli_constants.phpt 2007-07-12 10:02:37 UTC (rev 723)
@@ -8,6 +8,7 @@
require("connect.inc");
require("table.inc");
+ $php_version = (int)str_replace('.', '', PHP_VERSION);
$constants = get_defined_constants(true);
sort($constants);
@@ -113,7 +114,7 @@
if (defined('MYSQLI_DATA_TRUNCATED'))
$expected_constants["MYSQLI_DATA_TRUNCATED"] = true;
- if ($IS_MYSQLND) {
+ if ($IS_MYSQLND && $php_version >= 600) {
/* mysqlnd only */
$expected_constants["MYSQLI_OPT_NUMERIC_AND_DATETIME_AS_UNICODE"] = true;
} else {
| Thread |
|---|
| • PHP mysqlnd svn commit: r723 - trunk/tests/ext/mysqli | uwendel | 12 Jul |