diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-07-27 21:23:27 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-03 23:26:38 +0200 |
commit | 77172c220a99756e18ba60a69f270dc1e2387ff1 (patch) | |
tree | 1b4133cf6b3404ea0adbfb163a8c8c3d51028bc4 /ext/posix | |
parent | e0fa48f69dd14b52c8f1b2904ac7bd30472849a8 (diff) | |
download | php-git-77172c220a99756e18ba60a69f270dc1e2387ff1.tar.gz |
Convert resources to objects in ext/sockets
Closes GH-5900.
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"; } |