php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /opt/php-7.0.1/ext/posix/tests/ |
files >> //opt/php-7.0.1/ext/posix/tests/posix_ttyname_error_wrongparams.phpt |
--TEST-- Test posix_ttyname() with wrong parameters --DESCRIPTION-- Gets the absolute path to the current terminal device that is open on a given file descriptor. Source code: ext/posix/posix.c --CREDITS-- Falko Menge, mail at falko-menge dot de PHP Testfest Berlin 2009-05-10 --SKIPIF-- <?php if (!extension_loaded('posix')) { die('SKIP - POSIX extension not available'); } if (!extension_loaded('gd')) { die('SKIP - GD extension not available'); } if (!function_exists('imagecreate')) { die('SKIP - Function imagecreate() not available'); } ?> --FILE-- <?php var_dump(posix_ttyname()); // param missing var_dump(posix_ttyname(0)); // param not a ressource var_dump(posix_ttyname(imagecreate(1, 1))); // wrong resource type ?> ===DONE=== --EXPECTF-- Warning: posix_ttyname() expects exactly 1 parameter, 0 given in %s on line %d bool(false) bool(false) Warning: posix_ttyname(): supplied resource is not a valid stream resource in %s on line %s Warning: posix_ttyname(): expects argument 1 to be a valid stream resource in %s on line %d bool(false) ===DONE===y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`