php / php-src

The PHP Interpreter
https://www.php.net
Other
38.32k stars 7.76k forks source link

`bug74589_utf8.phpt` fails with `Could not open input file: …/source/ext/standard/tests/directory/bug74589_/test.php` #15294

Open paulmenzel opened 3 months ago

paulmenzel commented 3 months ago

Description

Building PHP 8.3.10 in /dev/shm and runnig the test suite, one test fails:

$ /dev/shm/bee-tldr/php/php-8.3.10-20240808/source/configure --prefix=/project/webmail2/20240808 --bindir=/project/webmail2/20240808/bin --sbindir=/project/webmail2/20240808/sbin --libexecdir=/project/webmail2/20240808/libexec --sysconfdir=/project/webmail2/20240808/etc --sharedstatedir=/project/webmail2/20240808/var --localstatedir=/project/webmail2/20240808/var --libdir=/project/webmail2/20240808/lib --includedir=/project/webmail2/20240808/include --datarootdir=/project/webmail2/20240808/share --datadir=/project/webmail2/20240808/share --infodir=/project/webmail2/20240808/share/info --localedir=/project/webmail2/20240808/share/locale --mandir=/project/webmail2/20240808/share/man --docdir=/project/webmail2/20240808/share/doc/php --exec-prefix=/project/webmail2/20240808 --enable-mbstring --with-openssl --with-gd --enable-gd-native-ttf --with-jpeg-dir=/usr --with-zlib --enable-zip --enable-sockets --with-mcrypt --enable-intl --enable-exif --with-ldap --with-ldap-sasl --with-kerberos --with-imap-ssl --with-curl=/usr
[…]
$ make -j32
[…]
$ make test
[…]
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #74589 __DIR__ wrong for unicode character, UTF-8 [ext/standard/tests/directory/bug74589_utf8.phpt]
=====================================================================

================================================================================
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt
================================================================================
Could not open input file: /dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_/test.php
================================================================================
001- string(%d) "%sbug74589_新建文件夹"
002- string(%d) "%sbug74589_新建文件夹%etest.php"
003- bool(true)
001+ Could not open input file: /dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_/test.php

================================================================================
$ ls -ltra /dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/
total 52
-rw-r--r--  1 webmail webmail   302 Jul 30 15:44 directory_constants.phpt
-rw-r--r--  1 webmail webmail   297 Jul 30 15:44 directory_constants-win32.phpt
-rw-r--r--  1 webmail webmail  1049 Jul 30 15:44 bug74589_utf8.phpt
-rw-r--r--  1 webmail webmail   498 Jul 30 15:44 DirectoryClass_error_001.phpt
-rw-r--r--  1 webmail webmail  1392 Jul 30 15:44 DirectoryClass_basic_001.phpt
-rw-r--r--  1 webmail webmail   504 Aug  8 17:05 bug74589_utf8.php
-rw-r--r--  1 webmail webmail   123 Aug  8 17:05 bug74589_utf8.out
-rw-r--r--  1 webmail webmail   278 Aug  8 17:05 bug74589_utf8.log
-rw-r--r--  1 webmail webmail   100 Aug  8 17:05 bug74589_utf8.exp
-rw-r--r--  1 webmail webmail   245 Aug  8 17:05 bug74589_utf8.diff
-rwxr-xr-x  1 webmail webmail 11453 Aug  8 17:05 bug74589_utf8.sh
drwxr-xr-x  2 webmail webmail   260 Aug  8 17:05 .
drwxr-xr-x 26 webmail webmail   920 Aug  8 17:07 ..
$ grep . /dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.*
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.diff:001- string(%d) "%sbug74589_新建文件夹"
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.diff:002- string(%d) "%sbug74589_新建文件夹%etest.php"
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.diff:003- bool(true)
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.diff:001+ Could not open input file: /dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_/test.php
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.exp:string(%d) "%sbug74589_新建文件夹"
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.exp:string(%d) "%sbug74589_新建文件夹%etest.php"
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.exp:bool(true)
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.log:---- EXPECTED OUTPUT
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.log:string(%d) "%sbug74589_新建文件夹"
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.log:string(%d) "%sbug74589_新建文件夹%etest.php"
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.log:bool(true)
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.log:---- ACTUAL OUTPUT
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.log:Could not open input file: /dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_/test.php
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.log:---- FAILED
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.out:Could not open input file: /dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_/test.php
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:<?php
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:/*
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:#vim: set fileencoding=utf-8
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:#vim: set encoding=utf-8
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:*/
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:$item = "bug74589_新建文件夹"; // utf-8 string
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:$dir = __DIR__ . DIRECTORY_SEPARATOR . $item;
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:$test_file = $dir . DIRECTORY_SEPARATOR . "test.php";
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:$test_file_escaped = escapeshellarg($test_file);
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:mkdir($dir);
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:file_put_contents($test_file,
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:"<?php
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:    var_dump(__DIR__);
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:    var_dump(__FILE__);
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:    var_dump(__DIR__ === __DIR__);");
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:$php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:echo shell_exec("$php -n $test_file_escaped");
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php:?>
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:--TEST--
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:Bug #74589 __DIR__ wrong for unicode character, UTF-8
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:--SKIPIF--
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:<?php
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:if (substr(PHP_OS, 0, 3) != 'WIN' && PHP_OS != 'Linux') {
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:    die('skip Linux or Windows only');
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:}
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:?>
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:--INI--
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:internal_encoding=utf-8
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:--FILE--
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:<?php
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:/*
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:#vim: set fileencoding=utf-8
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:#vim: set encoding=utf-8
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:*/
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:$item = "bug74589_新建文件夹"; // utf-8 string
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:$dir = __DIR__ . DIRECTORY_SEPARATOR . $item;
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:$test_file = $dir . DIRECTORY_SEPARATOR . "test.php";
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:$test_file_escaped = escapeshellarg($test_file);
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:mkdir($dir);
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:file_put_contents($test_file,
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:"<?php
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:    var_dump(__DIR__);
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:    var_dump(__FILE__);
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:    var_dump(__DIR__ === __DIR__);");
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:$php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:echo shell_exec("$php -n $test_file_escaped");
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:?>
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:--EXPECTF--
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:string(%d) "%sbug74589_新建文件夹"
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:string(%d) "%sbug74589_新建文件夹%etest.php"
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:bool(true)
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:--CLEAN--
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:<?php
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:   $item = "bug74589_新建文件夹"; // utf-8 string
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:   $dir = __DIR__ . DIRECTORY_SEPARATOR . $item;
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:   $test_file = $dir . DIRECTORY_SEPARATOR . "test.php";
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:   unlink($test_file);
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:   rmdir($dir);
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.phpt:?>
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:#!/bin/sh
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export TEST_PHP_SRCDIR='/dev/shm/bee-tldr/php/php-8.3.10-20240808/source'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export CC='cc'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export TEST_PHP_EXECUTABLE='/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/sapi/cli/php'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export SHELL='/usr/bin/bash'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_REPOSITORY_PREFIX='/project/webmail2/home/.local/src/bee'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export XDG_CONFIG_DIRS='/etc/xdg:/etc:/etc/default'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export MAKE_TERMOUT='/dev/pts/0'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export XDG_DATA_HOME='/project/webmail2/home/.local/share'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export XDG_CONFIG_HOME='/project/webmail2/home/.config'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_VERSION='1.2.28'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export PWD='/dev/shm/bee-tldr/php/php-8.3.10-20240808/build'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export LOGNAME='webmail'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export XDG_SESSION_TYPE='tty'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export MANPATH=':/project/webmail2/2015-04-09/man:/project/webmail2/2015-04-09/share/man'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export PRINTER='lexmark'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export HOME='/project/webmail2/home'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export LANG='C'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export TMPDIR='/scratch/local'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_PKGDIR='/project/webmail2/home/.local/src/bee/packages'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_CACHEDIR='/scratch/local/webmail/.cache/bee'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export SSH_CONNECTION='141.14.21.78 53364 141.14.18.33 22'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_METADIR='/project/webmail2/home/.local/share/bee'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export MFLAGS=''
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export XDG_CACHE_HOME='/scratch/local/webmail/.cache'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_BINDIR='/usr/bin'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export XDG_SESSION_CLASS='user'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export MAKEFLAGS=''
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_BUILDARCHIVEDIR='/project/webmail2/home/.local/src/bee/build-archives'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export TERM='xterm-256color'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export USER='webmail'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export MAKE_TERMERR='/dev/pts/0'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_SYSCONFDIR='/etc'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_LIBEXECDIR='/usr/libexec'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export SHLVL='3'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export MAKELEVEL='1'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_DATADIR='/usr/share'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export XDG_SESSION_ID='119651'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export LC_CTYPE='en_US.UTF-8'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export XDG_RUNTIME_DIR='/run/user/2283'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_BEEDIR='/project/webmail2/home/.local/src/bee/bee-files'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export SSH_CLIENT='141.14.21.78 53364 22'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_TMP_BUILDROOT='/dev/shm/bee-tldr'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export XDG_DATA_DIRS='/usr/local/share:/usr/share:/usr/local/package/share'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export PATH='/project/webmail2/2015-04-09/bin:/bin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/package/bin:/usr/local/bin:/project/webmail2/home/bin'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_TMP_TMPDIR='/dev/shm'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_ISSUES='/project/webmail2/home/.local/src/bee/bee-files.issues'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export SSH_TTY='/dev/pts/0'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export OLDPWD='/dev/shm/bee-tldr/php/php-8.3.10-20240808/source'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_DOWNLOADDIR='/project/webmail2/home/.local/src/bee/downloads'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export BEE_MAKEFLAGS='-j32'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export _='/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/sapi/cli/php'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export TEMP='/scratch/local'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export TEST_PHP_EXECUTABLE_ESCAPED=''\''/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/sapi/cli/php'\'''
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export TEST_PHP_CGI_EXECUTABLE='/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/sapi/cgi/php-cgi'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export TEST_PHP_CGI_EXECUTABLE_ESCAPED=''\''/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/sapi/cgi/php-cgi'\'''
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export TEST_PHPDBG_EXECUTABLE='/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/sapi/phpdbg/phpdbg'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export TEST_PHPDBG_EXECUTABLE_ESCAPED=''\''/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/sapi/phpdbg/phpdbg'\'''
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export REDIRECT_STATUS='1'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export QUERY_STRING=''
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export PATH_TRANSLATED='/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export SCRIPT_FILENAME='/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export REQUEST_METHOD='GET'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export CONTENT_TYPE=''
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export CONTENT_LENGTH=''
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export TZ=''
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export TEST_PHP_EXTRA_ARGS=' -n -c '\''/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/tmp-php.ini'\''  -d "output_handler=" -d "open_basedir=" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=32767" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=0" -d "report_memleaks=1" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "ignore_repeated_errors=0" -d "precision=14" -d "serialize_precision=-1" -d "memory_limit=128M" -d "opcache.fast_shutdown=0" -d "opcache.file_update_protection=0" -d "opcache.revalidate_freq=0" -d "opcache.jit_hot_loop=1" -d "opcache.jit_hot_func=1" -d "opcache.jit_hot_return=1" -d "opcache.jit_hot_side_exit=1" -d "zend.assertions=1" -d "zend.exception_ignore_args=0" -d "zend.exception_string_param_max_len=15" -d "short_open_tag=0" -d "extension_dir=/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/modules/" -d "zend_extension=/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/modules/opcache.so" -d "session.auto_start=0" -d "zlib.output_compression=Off" -d "internal_encoding=utf-8"'
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:export HTTP_COOKIE=''
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:case "$1" in
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:"gdb")
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:    gdb --args '/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/sapi/cli/php'  -n -c '/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/tmp-php.ini'   -d "output_handler=" -d "open_basedir=" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=32767" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=0" -d "report_memleaks=1" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "ignore_repeated_errors=0" -d "precision=14" -d "serialize_precision=-1" -d "memory_limit=128M" -d "opcache.fast_shutdown=0" -d "opcache.file_update_protection=0" -d "opcache.revalidate_freq=0" -d "opcache.jit_hot_loop=1" -d "opcache.jit_hot_func=1" -d "opcache.jit_hot_return=1" -d "opcache.jit_hot_side_exit=1" -d "zend.assertions=1" -d "zend.exception_ignore_args=0" -d "zend.exception_string_param_max_len=15" -d "short_open_tag=0" -d "extension_dir=/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/modules/" -d "zend_extension=/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/modules/opcache.so" -d "session.auto_start=0" -d "zlib.output_compression=Off" -d "internal_encoding=utf-8" -f "/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php"  2>&1
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:    ;;
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:"lldb")
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:    lldb -- '/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/sapi/cli/php'  -n -c '/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/tmp-php.ini'   -d "output_handler=" -d "open_basedir=" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=32767" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=0" -d "report_memleaks=1" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "ignore_repeated_errors=0" -d "precision=14" -d "serialize_precision=-1" -d "memory_limit=128M" -d "opcache.fast_shutdown=0" -d "opcache.file_update_protection=0" -d "opcache.revalidate_freq=0" -d "opcache.jit_hot_loop=1" -d "opcache.jit_hot_func=1" -d "opcache.jit_hot_return=1" -d "opcache.jit_hot_side_exit=1" -d "zend.assertions=1" -d "zend.exception_ignore_args=0" -d "zend.exception_string_param_max_len=15" -d "short_open_tag=0" -d "extension_dir=/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/modules/" -d "zend_extension=/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/modules/opcache.so" -d "session.auto_start=0" -d "zlib.output_compression=Off" -d "internal_encoding=utf-8" -f "/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php"  2>&1
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:    ;;
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:"valgrind")
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:    USE_ZEND_ALLOC=0 valgrind $2 '/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/sapi/cli/php'  -n -c '/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/tmp-php.ini'   -d "output_handler=" -d "open_basedir=" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=32767" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=0" -d "report_memleaks=1" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "ignore_repeated_errors=0" -d "precision=14" -d "serialize_precision=-1" -d "memory_limit=128M" -d "opcache.fast_shutdown=0" -d "opcache.file_update_protection=0" -d "opcache.revalidate_freq=0" -d "opcache.jit_hot_loop=1" -d "opcache.jit_hot_func=1" -d "opcache.jit_hot_return=1" -d "opcache.jit_hot_side_exit=1" -d "zend.assertions=1" -d "zend.exception_ignore_args=0" -d "zend.exception_string_param_max_len=15" -d "short_open_tag=0" -d "extension_dir=/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/modules/" -d "zend_extension=/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/modules/opcache.so" -d "session.auto_start=0" -d "zlib.output_compression=Off" -d "internal_encoding=utf-8" -f "/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php"  2>&1
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:    ;;
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:"rr")
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:    rr record $2 '/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/sapi/cli/php'  -n -c '/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/tmp-php.ini'   -d "output_handler=" -d "open_basedir=" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=32767" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=0" -d "report_memleaks=1" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "ignore_repeated_errors=0" -d "precision=14" -d "serialize_precision=-1" -d "memory_limit=128M" -d "opcache.fast_shutdown=0" -d "opcache.file_update_protection=0" -d "opcache.revalidate_freq=0" -d "opcache.jit_hot_loop=1" -d "opcache.jit_hot_func=1" -d "opcache.jit_hot_return=1" -d "opcache.jit_hot_side_exit=1" -d "zend.assertions=1" -d "zend.exception_ignore_args=0" -d "zend.exception_string_param_max_len=15" -d "short_open_tag=0" -d "extension_dir=/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/modules/" -d "zend_extension=/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/modules/opcache.so" -d "session.auto_start=0" -d "zlib.output_compression=Off" -d "internal_encoding=utf-8" -f "/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php"  2>&1
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:    ;;
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:*)
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:    '/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/sapi/cli/php'  -n -c '/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/tmp-php.ini'   -d "output_handler=" -d "open_basedir=" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=32767" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=0" -d "report_memleaks=1" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "ignore_repeated_errors=0" -d "precision=14" -d "serialize_precision=-1" -d "memory_limit=128M" -d "opcache.fast_shutdown=0" -d "opcache.file_update_protection=0" -d "opcache.revalidate_freq=0" -d "opcache.jit_hot_loop=1" -d "opcache.jit_hot_func=1" -d "opcache.jit_hot_return=1" -d "opcache.jit_hot_side_exit=1" -d "zend.assertions=1" -d "zend.exception_ignore_args=0" -d "zend.exception_string_param_max_len=15" -d "short_open_tag=0" -d "extension_dir=/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/modules/" -d "zend_extension=/dev/shm/bee-tldr/php/php-8.3.10-20240808/build/modules/opcache.so" -d "session.auto_start=0" -d "zlib.output_compression=Off" -d "internal_encoding=utf-8" -f "/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.php"  2>&1
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:    ;;
/dev/shm/bee-tldr/php/php-8.3.10-20240808/source/ext/standard/tests/directory/bug74589_utf8.sh:esac


### PHP Version

PHP 8.3.10

### Operating System

MarIuX64
iluuu1994 commented 3 months ago

I can't reproduce this on Linux (Fedora 40). Might this be related to MarIuX64? I've never heard of it.

paulmenzel commented 3 months ago

I can't reproduce this on Linux (Fedora 40).

Did you also build in /dev/shm?

Might this be related to MarIuX64? I've never heard of it.

In the end it’s loosely based on Linux From Scratch, and a standard environment.

iluuu1994 commented 3 months ago

Yes, I did a full rebuild in /dev/shm. It's not clear from your output why the test fails. Was the temporary file created?

cmb69 commented 3 months ago

This might be a charset/character encoding issue. Would that test pass, if you delete all occurrences of 新建文件夹 from that file?