4. Deprecated Functionality
========================================
+- MySQLi:
+ . The mysqli_driver::$driver_version property has been deprecated. The driver
+ version is meaningless as it hasn't been updated in more than a decade. Use
+ PHP_VERSION_ID instead.
+
========================================
5. Changed Functions
========================================
/* {{{ property driver_driver_version_read */
static int driver_driver_version_read(mysqli_object *obj, zval *retval, bool quiet)
{
+ zend_error(E_DEPRECATED, "The driver_version property is deprecated");
ZVAL_LONG(retval, MYSQLI_VERSION_ID);
return SUCCESS;
}
assert(mysqli_get_client_version() === $driver->client_version);
printf("driver->client_version = '%s'\n", $driver->client_version);
-assert($driver->driver_version > 0);
printf("driver->driver_version = '%s'\n", $driver->driver_version);
assert(in_array($driver->report_mode, [
Magic, magic properties:
driver->client_info = '%s'
driver->client_version = '%d'
+
+Deprecated: The driver_version property is deprecated in %s on line %d
driver->driver_version = '%d'
driver->report_mode = '%d'
driver->reconnect = ''
gettype($tmp), $tmp);
}
-if (!is_int($tmp = $driver->driver_version) || (0 == $tmp)) {
- printf("[004] Expecting int/any, got %s/%s\n",
- gettype($tmp), $tmp);
-}
-
$all_modes = [
MYSQLI_REPORT_ALL,
MYSQLI_REPORT_STRICT,