1--TEST--
2strlen() null deprecation warning promoted to exception
3--FILE--
4<?php
5
6set_error_handler(function($_, $msg) {
7    throw new Exception($msg);
8});
9try {
10    strlen(null);
11} catch (Exception $e) {
12    echo $e->getMessage(), "\n";
13}
14
15?>
16--EXPECT--
17strlen(): Passing null to parameter #1 ($string) of type string is deprecated
18