1--TEST-- 2Bug #48768 (parse_ini_*() crashes with INI_SCANNER_RAW) 3--FILE-- 4<?php 5 6$ini_location = __DIR__ . '/bug48768.tmp'; 7 8// Build ini data 9$ini_data = <<< EOT 10equal = "=" 11 12EOT; 13 14// Save ini data to file 15file_put_contents($ini_location, $ini_data); 16 17var_dump(parse_ini_file($ini_location, false, INI_SCANNER_RAW)); 18var_dump(parse_ini_file($ini_location, false, INI_SCANNER_NORMAL)); 19 20?> 21--CLEAN-- 22<?php @unlink(__DIR__ . '/bug48768.tmp'); ?> 23--EXPECT-- 24array(1) { 25 ["equal"]=> 26 string(1) "=" 27} 28array(1) { 29 ["equal"]=> 30 string(1) "=" 31} 32