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 >> /php-7.1.11/ext/standard/tests/math/ |
files >> //php-7.1.11/ext/standard/tests/math/bindec_error.phpt |
--TEST-- Test bindec() function : error conditions - incorrect input --FILE-- <?php /* Prototype : number bindec ( string $binary_string ) * Description: Returns the decimal equivalent of the binary number represented by the binary_string argument. * Source code: ext/standard/math.c */ /* * Pass incorrect input to bindec() to test behaviour */ echo "*** Testing bindec() : error conditions ***\n"; // get a class class classA { } echo "Incorrect number of arguments\n"; bindec(); bindec('01010101111',true); echo "Incorrect input\n"; bindec(new classA()); ?> --EXPECTF-- *** Testing bindec() : error conditions *** Incorrect number of arguments Warning: bindec() expects exactly 1 parameter, 0 given in %s on line %d Warning: bindec() expects exactly 1 parameter, 2 given in %s on line %d Incorrect input Recoverable fatal error: Object of class classA could not be converted to string in %s on line %dy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`