diff options
Diffstat (limited to 'ext/posix')
-rw-r--r-- | ext/posix/tests/posix_ttyname_error_wrongparams.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/posix/tests/posix_ttyname_error_wrongparams.phpt b/ext/posix/tests/posix_ttyname_error_wrongparams.phpt index 8d10ce5497..d666516521 100644 --- a/ext/posix/tests/posix_ttyname_error_wrongparams.phpt +++ b/ext/posix/tests/posix_ttyname_error_wrongparams.phpt @@ -20,7 +20,7 @@ PHP Testfest Berlin 2009-05-10 <?php var_dump(posix_ttyname(0)); // param not a resource try { - var_dump(posix_ttyname(socket_create(AF_INET, SOCK_DGRAM, SOL_UDP))); // wrong resource type + var_dump(posix_ttyname(finfo_open(FILEINFO_NONE, __DIR__))); // wrong resource type } catch (TypeError $e) { echo $e->getMessage(), "\n"; } |