summaryrefslogtreecommitdiff
path: root/Zend/tests/unset_cast_deprecated.phpt
blob: 6744c85f0297438538cda2ed7348d84a8b7d4d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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)