mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Use *.data for tests data files
This commit is contained in:
parent
d3c95db18c
commit
83bfbc2903
4 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue