dis-bench / src /php /php-src /Zend /tests /attributes /deprecated /message_004.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
291 Bytes
--TEST--
#[\Deprecated]: Message with value unknown at compile time.
--FILE--
<?php
define('MESSAGE', 'value-' . (random_int(1, 2) == 1 ? 'a' : 'b'));
#[\Deprecated(MESSAGE)]
function test() {
}
test();
?>
--EXPECTF--
Deprecated: Function test() is deprecated, value-%c in %s on line %d