mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Use *.data for tests data files
This commit is contained in:
@@ -10,7 +10,7 @@ error_reporting=2047
|
||||
--FILE--
|
||||
<?php
|
||||
//error_reporting(E_ALL);
|
||||
$utf = implode('', file(__DIR__.'/Quotes.UTF-8'));
|
||||
$utf = implode('', file(__DIR__.'/Quotes.UTF-8.data'));
|
||||
|
||||
print(iconv("UTF-8", "ISO-8859-1//TRANSLIT", $utf));
|
||||
print(iconv("UTF-8", "ASCII//TRANSLIT", $utf));
|
||||
|
||||
@@ -14,8 +14,8 @@ function ascii2hex($ascii) {
|
||||
return $hex;
|
||||
}
|
||||
|
||||
$html_file = fopen(realpath(__DIR__) . '/html.raw', 'r');
|
||||
$utf_8_filepath = realpath(__DIR__) . '/utf8.raw';
|
||||
$html_file = fopen(realpath(__DIR__) . '/html.data', 'r');
|
||||
$utf_8_filepath = realpath(__DIR__) . '/utf8.tmp';
|
||||
$utf_8_file = fopen($utf_8_filepath, 'w+');
|
||||
|
||||
recode_file('html..utf8', $html_file, $utf_8_file);
|
||||
|
||||
Reference in New Issue
Block a user