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/oci8/tests/ |
files >> //opt/php-7.0.1/ext/oci8/tests/bug68298.phpt |
--TEST-- Bug #68298 (OCI int overflow) --SKIPIF-- <?php if (!extension_loaded('oci8')) die ("skip no oci8 extension"); if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only"); ?> --FILE-- <?php require(dirname(__FILE__).'/connect.inc'); $stmtarray = array( "DROP TABLE BUG68298", "CREATE TABLE BUG68298 (COL1 NUMBER(20))" ); oci8_test_sql_execute($c, $stmtarray); $s = oci_parse($c, "INSERT INTO BUG68298 VALUES (:INTVALUE)"); $intvalue = 1152921504606846975; oci_bind_by_name($s, ":INTVALUE", $intvalue, -1, SQLT_INT); oci_execute($s); $s = oci_parse($c, "INSERT INTO BUG68298 VALUES (:INTVALUE)"); $intvalue = -1152921504606846975; oci_bind_by_name($s, ":INTVALUE", $intvalue, -1, SQLT_INT); oci_execute($s); $s = oci_parse($c, "SELECT COL1 FROM BUG68298"); oci_execute($s); oci_fetch_all($s, $r); var_dump($r); $stmtarray = array("DROP TABLE BUG68298"); oci8_test_sql_execute($c, $stmtarray); ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- array(1) { ["COL1"]=> array(2) { [0]=> string(19) "1152921504606846975" [1]=> string(20) "-1152921504606846975" } } ===DONE===y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`