summaryrefslogtreecommitdiff
path: root/Zend/tests/bug74603.phpt
blob: b3194ecd48f7dc6f9bd3a12de66b8bee1664d024 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #74603 (PHP INI Parsing Stack Buffer Overflow Vulnerability)
--SKIPIF--
<?php
if (PHP_INT_MAX !== 2147483647)
        die('skip for 32-bit only');
--FILE--
<?php
var_dump(parse_ini_file(__DIR__ . "/bug74603.ini", true, INI_SCANNER_NORMAL));
?>
--EXPECT--
array(1) {
  [0]=>
  string(1) "0"
}