Deprecated in PHP 7.2 as part of
https://wiki.php.net/rfc/deprecations_php_7_2.
========================================
- Core:
+ . Removed (unset) cast.
. Removed track_errors ini directive. This means that $php_errormsg is no
longer available. The error_get_last() function may be used instead.
. Removed create_function(). Anonymous functions may be used instead.
+++ /dev/null
---TEST--
-The (unset) cast is deprecated
---FILE--
-<?php
-
-$x = 1;
-var_dump((unset) $x);
-var_dump($x);
-
-?>
---EXPECTF--
-Deprecated: The (unset) cast is deprecated in %s on line %d
-NULL
-int(1)
--- /dev/null
+--TEST--
+The (unset) cast is removed
+--FILE--
+<?php
+
+$x = 1;
+var_dump((unset) $x);
+var_dump($x);
+
+?>
+--EXPECTF--
+Fatal error: The (unset) cast is no longer supported in %s on line %d
opline->extended_value = ast->attr;
if (ast->attr == IS_NULL) {
- zend_error(E_DEPRECATED, "The (unset) cast is deprecated");
+ zend_error(E_COMPILE_ERROR, "The (unset) cast is no longer supported");
}
}
/* }}} */