summaryrefslogtreecommitdiff
path: root/Zend/tests/null_to_non_nullable_special_func.phpt
blob: 9dc1c96f7299919026a2e0c20cce83dfaa4ef5d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Test null arg behavior for special functions
--FILE--
<?php

$null = null;
var_dump(strlen($null));

?>
--EXPECTF--
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d
int(0)