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