php / php-src

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

4 test failures on 8.3beta3 on M1 macOS #12024

Open nurujjamanpollob opened 1 year ago

nurujjamanpollob commented 1 year ago

Description

I am building PHP 8.3.0 beta 3 from the source on a macOS 16.5.1 machine running Apple M1 Pro Processor.

After finishing the build process, I have run make TEST_PHP_ARGS=-j4 test which ends with the following test errors:


=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
Test open_basedir configuration [tests/security/open_basedir_linkinfo.phpt]  XFAIL REASON: BUG: open_basedir cannot delete symlink to prohibited file. See also
bugs 48111 and 52176.
Bug #67167: filter_var(null,FILTER_VALIDATE_BOOLEAN,FILTER_NULL_ON_FAILURE) returns null [ext/filter/tests/bug67167.02.phpt]  XFAIL REASON: Requires php_zval_filter to not use convert_to_string for all filters.
Bug #42718 (unsafe_raw filter not applied when configured as default filter) [ext/filter/tests/bug42718.phpt]  XFAIL REASON: FILTER_UNSAFE_RAW not applied when configured as default filter, even with flags
Bug #67296 (filter_input doesn't validate variables) [ext/filter/tests/bug49184.phpt]  XFAIL REASON: See Bug #49184
Return type check elision [ext/opcache/tests/opt/verify_return_type.phpt]  XFAIL REASON: Return types cannot be inferred through prototypes
via [ext/pdo_sqlite/tests/common.phpt]
    SQLite PDO Common: PDOStatement::getColumnMeta [ext/pdo_sqlite/tests/pdo_022.phpt]  XFAIL REASON: This feature is not yet finalized, no test makes sense
updateTimestamp never called when session data is empty [ext/session/tests/user_session_module/bug71162.phpt]  XFAIL REASON: Current session module is designed to write empty session always. In addition, current session module only supports SessionHandlerInterface only from PHP 7.0.
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
DOMDocument::saveXML(): XML_SAVE_NO_DECL [ext/dom/tests/DOMDocument_saveXML_XML_SAVE_NO_DECL.phpt]
Bug #74090 stream_get_contents maxlength>-1 returns empty string on windows [ext/standard/tests/streams/bug74090.phpt]
Test detection of inline string manipulations on zval watch [sapi/phpdbg/tests/watch_004.phpt]
Test proper watch comparisons when having multiple levels of indirection from a zval to its value [sapi/phpdbg/tests/watch_005.phpt]
=====================================================================

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    47 (gmp, ftp, imap, dl_test, calendar, pspell, snmp, sysvshm, sockets, sysvmsg, intl, sysvsem, dba, ldap, skeleton, readline, mysqlnd, bz2, pdo_odbc, soap, zlib, pdo_mysql, zip, curl, enchant, tidy, oci8, pdo_pgsql, ffi, odbc, gettext, mysqli, exif, pgsql, zend_test, gd, sodium, pcntl, com_dotnet, shmop, openssl, xsl, bcmath, pdo_dblib, pdo_oci, pdo_firebird, mbstring)
Exts tested     :    26
---------------------------------------------------------------------

Number of tests : 18509             12806
Tests skipped   :  5703 ( 30.8%) --------
Tests warned    :     0 (  0.0%) (  0.0%)
Tests failed    :     4 (  0.0%) (  0.0%)
Expected fail   :     7 (  0.0%) (  0.1%)
Tests passed    : 12795 ( 69.1%) ( 99.9%)
---------------------------------------------------------------------
Time taken      :   147 seconds
=====================================================================

=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
Test open_basedir configuration [tests/security/open_basedir_linkinfo.phpt]  XFAIL REASON: BUG: open_basedir cannot delete symlink to prohibited file. See also
bugs 48111 and 52176.
Bug #67167: filter_var(null,FILTER_VALIDATE_BOOLEAN,FILTER_NULL_ON_FAILURE) returns null [ext/filter/tests/bug67167.02.phpt]  XFAIL REASON: Requires php_zval_filter to not use convert_to_string for all filters.
Bug #42718 (unsafe_raw filter not applied when configured as default filter) [ext/filter/tests/bug42718.phpt]  XFAIL REASON: FILTER_UNSAFE_RAW not applied when configured as default filter, even with flags
Bug #67296 (filter_input doesn't validate variables) [ext/filter/tests/bug49184.phpt]  XFAIL REASON: See Bug #49184
Return type check elision [ext/opcache/tests/opt/verify_return_type.phpt]  XFAIL REASON: Return types cannot be inferred through prototypes
via [ext/pdo_sqlite/tests/common.phpt]
    SQLite PDO Common: PDOStatement::getColumnMeta [ext/pdo_sqlite/tests/pdo_022.phpt]  XFAIL REASON: This feature is not yet finalized, no test makes sense
updateTimestamp never called when session data is empty [ext/session/tests/user_session_module/bug71162.phpt]  XFAIL REASON: Current session module is designed to write empty session always. In addition, current session module only supports SessionHandlerInterface only from PHP 7.0.
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
DOMDocument::saveXML(): XML_SAVE_NO_DECL [ext/dom/tests/DOMDocument_saveXML_XML_SAVE_NO_DECL.phpt]
Bug #74090 stream_get_contents maxlength>-1 returns empty string on windows [ext/standard/tests/streams/bug74090.phpt]
Test detection of inline string manipulations on zval watch [sapi/phpdbg/tests/watch_004.phpt]
Test proper watch comparisons when having multiple levels of indirection from a zval to its value [sapi/phpdbg/tests/watch_005.phpt]
=====================================================================

================================================================================
/Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/ext/dom/tests/DOMDocument_saveXML_XML_SAVE_NO_DECL.phpt
================================================================================
<?xml version="1.0"?>
<root>&#xE9;</root>
<root>&#xE9;</root>
<root>&#60;/root>
string(0) ""
================================================================================
     <?xml version="1.0"?>
     <root>&#xE9;</root>
     <root>&#xE9;</root>
004- <root>&#233;</root>
004+ <root>&#60;/root>
     string(0) ""

================================================================================

================================================================================
/Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/ext/standard/tests/streams/bug74090.phpt
================================================================================
bool(false)
================================================================================
001- bool(true)
001+ bool(false)

================================================================================

================================================================================
/Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/phpdbg/tests/watch_004.phpt
================================================================================
[Successful compilation of /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/phpdbg/tests/watch_004.php]
prompt> [Breakpoint #0 added at /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/phpdbg/tests/watch_004.php:3]
prompt> [Breakpoint #0 at /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/phpdbg/tests/watch_004.php:3, hits: 1]
>00003: $b = "a";
 00004: $a = $b.$b;
 00005: $a[1] = "b";
prompt> [Added watchpoint #0 for $a]
prompt> [Breaking on watchpoint $a]
Old value: 
New value: aa

 ** ERROR: process timed out **
================================================================================
--
     prompt> [Breaking on watchpoint $a]
     Old value: 
     New value: aa
011- >00005: $a[1] = "b";
012-  00006: 
013- prompt> [Breaking on watchpoint $a]
014- Old value: aa
015- New value: ab
016- >00006: 
017- prompt> [$a has been removed, removing watchpoint]
018- [Script ended normally]
019- prompt>
011+ 
012+  ** ERROR: process timed out **

================================================================================

================================================================================
/Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/phpdbg/tests/watch_005.phpt
================================================================================
[Successful compilation of /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/phpdbg/tests/watch_005.php]
prompt> [Breakpoint #0 added at /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/phpdbg/tests/watch_005.php:3]
prompt> [Breakpoint #0 at /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/phpdbg/tests/watch_005.php:3, hits: 1]
>00003: $b = "a";
 00004: $a = $b.$b;
 00005: $c = &$a;
prompt> [Added recursive watchpoint #0 for $a]
prompt> [Breaking on watchpoint $a]
Old value: 
New value: aa

 ** ERROR: process timed out **
================================================================================
--
     prompt> [Breaking on watchpoint $a]
     Old value: 
     New value: aa
011- >00005: $c = &$a;
012-  00006: $a[1] = "b";
013-  00007: 
014- prompt> [Breaking on watchpoint $a]
015- Old value inaccessible or destroyed
016- New value (reference): aa
017- >00006: $a[1] = "b";
018-  00007: 
019-  00008: exit;
020- prompt> [Breaking on watchpoint $a]
021- Old value: aa
022- New value: ab
023- >00008: exit;
024-  00009: 
025- prompt> [$a has been removed, removing watchpoint recursively]
026- [Script ended normally]
027- prompt>
011+ 
012+  ** ERROR: process timed out **

================================================================================

================================================================================
BUILD ENVIRONMENT
================================================================================
OS:
Darwin - Darwin Nurujjamans-Laptop.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 arm64

Autoconf:
autoconf (GNU Autoconf) 2.71
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>, <https://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

Bundled Libtool:
ltmain.sh (GNU libtool) 1.5.26 (1.1220.2.492 2008/01/30 06:40:56)

Copyright (C) 2008  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

System Libtool:
glibtool (GNU libtool) 2.4.7
Written by Gordon Matzigkeit, 1996

Copyright (C) 2014 Free Software Foundation, Inc.

Compiler:
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Bison:
bison (GNU Bison) 3.8.2
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Libraries:

================================================================================
PHPINFO
================================================================================
phpinfo()
PHP Version => 8.3.0beta3

System => Darwin Nurujjamans-Laptop.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 arm64
Build Date => Aug 23 2023 00:25:20
Build System => Darwin Nurujjamans-Laptop.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 arm64
Configure Command =>  './configure'  '--with-iconv=/opt/homebrew/opt/libiconv'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => (none)
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20220830
PHP Extension => 20220830
Zend Extension => 420220830
Zend Extension Build => API420220830,NTS
PHP Extension Build => API20220830,NTS
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => enabled
Zend Memory Manager => enabled
Zend Multibyte Support => disabled
Zend Max Execution Timers => disabled
IPv6 Support => enabled
DTrace Support => disabled

Registered PHP Streams => php, file, glob, data, http, ftp, phar
Registered Stream Socket Transports => tcp, udp, unix, udg
Registered Stream Filters => convert.iconv.*, string.rot13, string.toupper, string.tolower, convert.*, consumed, dechunk

This program makes use of the Zend Scripting Language Engine:
Zend Engine v4.3.0-dev, Copyright (c) Zend Technologies

 _______________________________________________________________________

Configuration

Core

PHP Version => 8.3.0beta3

Directive => Local Value => Master Value
allow_url_fopen => On => On
allow_url_include => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => UTF-8 => UTF-8
default_mimetype => text/html => text/html
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => STDERR => STDERR
display_startup_errors => On => On
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => On => On
enable_post_data_reading => On => On
error_append_string => no value => no value
error_log => no value => no value
error_log_mode => 0644 => 0644
error_prepend_string => no value => no value
error_reporting => no value => no value
expose_php => On => On
extension_dir => /usr/local/lib/php/extensions/no-debug-non-zts-20220830 => /usr/local/lib/php/extensions/no-debug-non-zts-20220830
fiber.stack_size => no value => no value
file_uploads => On => On
hard_timeout => 2 => 2
highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font>
highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font>
highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font>
highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font>
highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .: => .:
input_encoding => no value => no value
internal_encoding => no value => no value
log_errors => Off => Off
mail.add_x_header => Off => Off
mail.force_extra_parameters => no value => no value
mail.log => no value => no value
mail.mixed_lf_and_crlf => Off => Off
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 1000 => 1000
max_multipart_body_parts => -1 => -1
memory_limit => 128M => 128M
open_basedir => no value => no value
output_buffering => 0 => 0
output_encoding => no value => no value
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 14 => 14
realpath_cache_size => 4096K => 4096K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
request_order => no value => no value
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i
serialize_precision => -1 => -1
short_open_tag => On => On
SMTP => localhost => localhost
smtp_port => 25 => 25
sys_temp_dir => no value => no value
syslog.facility => LOG_USER => LOG_USER
syslog.filter => no-ctrl => no-ctrl
syslog.ident => php => php
unserialize_callback_func => no value => no value
upload_max_filesize => 2M => 2M
upload_tmp_dir => no value => no value
user_dir => no value => no value
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
variables_order => EGPCS => EGPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
zend.assertions => 1 => 1
zend.detect_unicode => On => On
zend.enable_gc => On => On
zend.exception_ignore_args => Off => Off
zend.exception_string_param_max_len => 15 => 15
zend.max_allowed_stack_size => 0 => 0
zend.multibyte => Off => Off
zend.reserved_stack_size => 0 => 0
zend.script_encoding => no value => no value
zend.signal_check => Off => Off

ctype

ctype functions => enabled

date

date/time support => enabled
timelib version => 2022.09
"Olson" Timezone Database Version => 2023.3
Timezone Database => internal
Default timezone => UTC

Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.833333 => 90.833333
date.sunset_zenith => 90.833333 => 90.833333
date.timezone => UTC => UTC

dom

DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.9.13
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled

fileinfo

fileinfo support => enabled
libmagic => 543

filter

Input Validation and Filtering => enabled

Directive => Local Value => Master Value
filter.default => unsafe_raw => unsafe_raw
filter.default_flags => no value => no value

hash

hash support => enabled
Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512/224 sha512/256 sha512 sha3-224 sha3-256 sha3-384 sha3-512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b crc32c fnv132 fnv1a32 fnv164 fnv1a64 joaat murmur3a murmur3c murmur3f xxh32 xxh64 xxh3 xxh128 haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 

iconv

iconv support => enabled
iconv implementation => libiconv
iconv library version => 1.17

Directive => Local Value => Master Value
iconv.input_encoding => no value => no value
iconv.internal_encoding => no value => no value
iconv.output_encoding => no value => no value

json

json support => enabled

libxml

libXML support => active
libXML Compiled Version => 2.9.13
libXML Loaded Version => 20913
libXML streams => enabled

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 10.40 2022-04-14
PCRE Unicode Version => 14.0.0
PCRE JIT Support => enabled
PCRE JIT Target => ARM-64 64bit (little endian + unaligned)

Directive => Local Value => Master Value
pcre.backtrack_limit => 1000000 => 1000000
pcre.jit => On => On
pcre.recursion_limit => 100000 => 100000

PDO

PDO support => enabled
PDO drivers => sqlite

pdo_sqlite

PDO Driver for SQLite 3.x => enabled
SQLite Library => 3.39.5

Phar

Phar: PHP Archive support => enabled
Phar API version => 1.1.1
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
gzip compression => disabled (install ext/zlib)
bzip2 compression => disabled (install ext/bz2)
OpenSSL support => disabled (install ext/openssl)

Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
Directive => Local Value => Master Value
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On

posix

POSIX support => enabled

random

Version => 8.3.0beta3

Reflection

Reflection => enabled

session

Session Support => enabled
Registered save handlers => files user 
Registered serializer handlers => php_serialize php php_binary 

Directive => Local Value => Master Value
session.auto_start => Off => Off
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_httponly => Off => Off
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_samesite => no value => no value
session.cookie_secure => Off => Off
session.gc_divisor => 100 => 100
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.lazy_write => On => On
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => no value => no value
session.serialize_handler => php => php
session.sid_bits_per_character => 4 => 4
session.sid_length => 32 => 32
session.upload_progress.cleanup => On => On
session.upload_progress.enabled => On => On
session.upload_progress.freq => 1% => 1%
session.upload_progress.min_freq => 1 => 1
session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix => upload_progress_ => upload_progress_
session.use_cookies => On => On
session.use_only_cookies => On => On
session.use_strict_mode => Off => Off
session.use_trans_sid => Off => Off

SimpleXML

SimpleXML support => enabled
Schema support => enabled

SPL

SPL support => enabled
Interfaces => OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

sqlite3

SQLite3 support => enabled
SQLite Library => 3.39.5

Directive => Local Value => Master Value
sqlite3.defensive => On => On
sqlite3.extension_dir => no value => no value

standard

Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i

Directive => Local Value => Master Value
assert.active => On => On
assert.bail => Off => Off
assert.callback => no value => no value
assert.exception => On => On
assert.warning => On => On
auto_detect_line_endings => Off => Off
default_socket_timeout => 60 => 60
from => no value => no value
session.trans_sid_hosts => no value => no value
session.trans_sid_tags => a=href,area=href,frame=src,form= => a=href,area=href,frame=src,form=
unserialize_max_depth => 4096 => 4096
url_rewriter.hosts => no value => no value
url_rewriter.tags => form= => form=
user_agent => no value => no value

tokenizer

Tokenizer Support => enabled

xml

XML Support => active
XML Namespace Support => active
libxml2 Version => 2.9.13

xmlreader

XMLReader => enabled

xmlwriter

XMLWriter => enabled

Additional Modules

Module Name

Environment

Variable => Value
LDFLAGS => -L/opt/homebrew/opt/bison/lib
TERM_PROGRAM => Apple_Terminal
TEST_PHP_SRCDIR => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3
ANDROID_HOME => /Volumes/sdks/android-cmdline/cmdline-tools
TERM => xterm-256color
SHELL => /bin/zsh
MAKEFLAGS =>  -- TEST_PHP_ARGS=-j10
SSH_CLIENT => deleted
TMPDIR => /var/folders/n_/zxjr_nmn1_xf70mms593sqn00000gn/T/
CPPFLAGS => -I/opt/homebrew/opt/libxml2/include -D_GNU_SOURCE
TEST_PHPDBG_EXECUTABLE => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/phpdbg/phpdbg
CONDA_SHLVL => 0
GRADLE_HOME => /Volumes/sdks/build-tools/gradle-8.0
TERM_PROGRAM_VERSION => 447
TERM_SESSION_ID => F733691C-5BEB-4ECB-A7FF-AA4C0D6AA13F
SSH_TTY => deleted
USER => nurujjamanpollob
CONDA_EXE => /Users/nurujjamanpollob/miniforge3/bin/conda
NDKROOT => /Volumes/sdks/android/ndk/25.1.8937393
MAKE_TERMOUT => /dev/ttys000
SSH_AUTH_SOCK => deleted
__CF_USER_TEXT_ENCODING => 0x1F5:0x0:0x2
MAKELEVEL => 1
MFLAGS =>  
_CE_CONDA =>  
PATH => /opt/homebrew/opt/libxml2/bin:/opt/homebrew/opt/make/libexec/gnubin:/opt/homebrew/opt/libxml2/bin:/opt/homebrew/opt/bison/bin:/Users/nurujjamanpollob/miniforge3/condabin:/Volumes/sdks/android-cmdline/cmdline-tools/latest/bin:/Volumes/sdks/build-tools/gradle-8.0/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/nurujjamanpollob/.cargo/bin:/Volumes/sdks/android/platform-tools:/Volumes/sdks/android/build-tools/30.0.3:/Volumes/sdks/android/tools/bin
ANDROID_SDK_HOME => /Volumes/sdks/android
_ => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cli/php
__CFBundleIdentifier => com.apple.Terminal
PWD => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3
TEST_PHP_CGI_EXECUTABLE => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cgi/php-cgi
JAVA_HOME => /Volumes/sdks/java-11/Home
TEST_PHP_ARGS => -j10
TEST_PHP_EXECUTABLE => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cli/php
XPC_FLAGS => 0x0
TEST_PHPDBG_EXECUTABLE_ESCAPED => '/Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/phpdbg/phpdbg'
XPC_SERVICE_NAME => 0
_CE_M =>  
SHLVL => 3
HOME => /Users/nurujjamanpollob
TEST_PHP_EXECUTABLE_ESCAPED => '/Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cli/php'
CONDA_PYTHON_EXE => /Users/nurujjamanpollob/miniforge3/bin/python
LOGNAME => nurujjamanpollob
MAKE_TERMERR => /dev/ttys000
SSH_CONNECTION => deleted
LC_CTYPE => UTF-8
TEST_PHP_CGI_EXECUTABLE_ESCAPED => '/Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cgi/php-cgi'
CC => cc
NDK_ROOT => /Volumes/sdks/android/ndk/25.1.8937393

PHP Variables

Variable => Value
$_SERVER['LDFLAGS'] => -L/opt/homebrew/opt/bison/lib
$_SERVER['TERM_PROGRAM'] => Apple_Terminal
$_SERVER['TEST_PHP_SRCDIR'] => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3
$_SERVER['ANDROID_HOME'] => /Volumes/sdks/android-cmdline/cmdline-tools
$_SERVER['TERM'] => xterm-256color
$_SERVER['SHELL'] => /bin/zsh
$_SERVER['MAKEFLAGS'] =>  -- TEST_PHP_ARGS=-j10
$_SERVER['SSH_CLIENT'] => deleted
$_SERVER['TMPDIR'] => /var/folders/n_/zxjr_nmn1_xf70mms593sqn00000gn/T/
$_SERVER['CPPFLAGS'] => -I/opt/homebrew/opt/libxml2/include -D_GNU_SOURCE
$_SERVER['TEST_PHPDBG_EXECUTABLE'] => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/phpdbg/phpdbg
$_SERVER['CONDA_SHLVL'] => 0
$_SERVER['GRADLE_HOME'] => /Volumes/sdks/build-tools/gradle-8.0
$_SERVER['TERM_PROGRAM_VERSION'] => 447
$_SERVER['TERM_SESSION_ID'] => F733691C-5BEB-4ECB-A7FF-AA4C0D6AA13F
$_SERVER['SSH_TTY'] => deleted
$_SERVER['USER'] => nurujjamanpollob
$_SERVER['CONDA_EXE'] => /Users/nurujjamanpollob/miniforge3/bin/conda
$_SERVER['NDKROOT'] => /Volumes/sdks/android/ndk/25.1.8937393
$_SERVER['MAKE_TERMOUT'] => /dev/ttys000
$_SERVER['SSH_AUTH_SOCK'] => deleted
$_SERVER['__CF_USER_TEXT_ENCODING'] => 0x1F5:0x0:0x2
$_SERVER['MAKELEVEL'] => 1
$_SERVER['MFLAGS'] => 
$_SERVER['_CE_CONDA'] => 
$_SERVER['PATH'] => /opt/homebrew/opt/libxml2/bin:/opt/homebrew/opt/make/libexec/gnubin:/opt/homebrew/opt/libxml2/bin:/opt/homebrew/opt/bison/bin:/Users/nurujjamanpollob/miniforge3/condabin:/Volumes/sdks/android-cmdline/cmdline-tools/latest/bin:/Volumes/sdks/build-tools/gradle-8.0/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/nurujjamanpollob/.cargo/bin:/Volumes/sdks/android/platform-tools:/Volumes/sdks/android/build-tools/30.0.3:/Volumes/sdks/android/tools/bin
$_SERVER['ANDROID_SDK_HOME'] => /Volumes/sdks/android
$_SERVER['_'] => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cli/php
$_SERVER['__CFBundleIdentifier'] => com.apple.Terminal
$_SERVER['PWD'] => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3
$_SERVER['TEST_PHP_CGI_EXECUTABLE'] => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cgi/php-cgi
$_SERVER['JAVA_HOME'] => /Volumes/sdks/java-11/Home
$_SERVER['TEST_PHP_ARGS'] => -j10
$_SERVER['TEST_PHP_EXECUTABLE'] => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cli/php
$_SERVER['XPC_FLAGS'] => 0x0
$_SERVER['TEST_PHPDBG_EXECUTABLE_ESCAPED'] => '/Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/phpdbg/phpdbg'
$_SERVER['XPC_SERVICE_NAME'] => 0
$_SERVER['_CE_M'] => 
$_SERVER['SHLVL'] => 3
$_SERVER['HOME'] => /Users/nurujjamanpollob
$_SERVER['TEST_PHP_EXECUTABLE_ESCAPED'] => '/Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cli/php'
$_SERVER['CONDA_PYTHON_EXE'] => /Users/nurujjamanpollob/miniforge3/bin/python
$_SERVER['LOGNAME'] => nurujjamanpollob
$_SERVER['MAKE_TERMERR'] => /dev/ttys000
$_SERVER['SSH_CONNECTION'] => deleted
$_SERVER['LC_CTYPE'] => UTF-8
$_SERVER['TEST_PHP_CGI_EXECUTABLE_ESCAPED'] => '/Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cgi/php-cgi'
$_SERVER['CC'] => cc
$_SERVER['NDK_ROOT'] => /Volumes/sdks/android/ndk/25.1.8937393
$_SERVER['PHP_SELF'] => 
$_SERVER['SCRIPT_NAME'] => 
$_SERVER['SCRIPT_FILENAME'] => 
$_SERVER['PATH_TRANSLATED'] => 
$_SERVER['DOCUMENT_ROOT'] => 
$_SERVER['REQUEST_TIME_FLOAT'] => 1692729054.8723
$_SERVER['REQUEST_TIME'] => 1692729054
$_SERVER['argv'] => Array
(
)

$_SERVER['argc'] => 0
$_ENV['LDFLAGS'] => -L/opt/homebrew/opt/bison/lib
$_ENV['TERM_PROGRAM'] => Apple_Terminal
$_ENV['TEST_PHP_SRCDIR'] => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3
$_ENV['ANDROID_HOME'] => /Volumes/sdks/android-cmdline/cmdline-tools
$_ENV['TERM'] => xterm-256color
$_ENV['SHELL'] => /bin/zsh
$_ENV['MAKEFLAGS'] =>  -- TEST_PHP_ARGS=-j10
$_ENV['SSH_CLIENT'] => deleted
$_ENV['TMPDIR'] => /var/folders/n_/zxjr_nmn1_xf70mms593sqn00000gn/T/
$_ENV['CPPFLAGS'] => -I/opt/homebrew/opt/libxml2/include -D_GNU_SOURCE
$_ENV['TEST_PHPDBG_EXECUTABLE'] => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/phpdbg/phpdbg
$_ENV['CONDA_SHLVL'] => 0
$_ENV['GRADLE_HOME'] => /Volumes/sdks/build-tools/gradle-8.0
$_ENV['TERM_PROGRAM_VERSION'] => 447
$_ENV['TERM_SESSION_ID'] => F733691C-5BEB-4ECB-A7FF-AA4C0D6AA13F
$_ENV['SSH_TTY'] => deleted
$_ENV['USER'] => nurujjamanpollob
$_ENV['CONDA_EXE'] => /Users/nurujjamanpollob/miniforge3/bin/conda
$_ENV['NDKROOT'] => /Volumes/sdks/android/ndk/25.1.8937393
$_ENV['MAKE_TERMOUT'] => /dev/ttys000
$_ENV['SSH_AUTH_SOCK'] => deleted
$_ENV['__CF_USER_TEXT_ENCODING'] => 0x1F5:0x0:0x2
$_ENV['MAKELEVEL'] => 1
$_ENV['MFLAGS'] => 
$_ENV['_CE_CONDA'] => 
$_ENV['PATH'] => /opt/homebrew/opt/libxml2/bin:/opt/homebrew/opt/make/libexec/gnubin:/opt/homebrew/opt/libxml2/bin:/opt/homebrew/opt/bison/bin:/Users/nurujjamanpollob/miniforge3/condabin:/Volumes/sdks/android-cmdline/cmdline-tools/latest/bin:/Volumes/sdks/build-tools/gradle-8.0/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/nurujjamanpollob/.cargo/bin:/Volumes/sdks/android/platform-tools:/Volumes/sdks/android/build-tools/30.0.3:/Volumes/sdks/android/tools/bin
$_ENV['ANDROID_SDK_HOME'] => /Volumes/sdks/android
$_ENV['_'] => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cli/php
$_ENV['__CFBundleIdentifier'] => com.apple.Terminal
$_ENV['PWD'] => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3
$_ENV['TEST_PHP_CGI_EXECUTABLE'] => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cgi/php-cgi
$_ENV['JAVA_HOME'] => /Volumes/sdks/java-11/Home
$_ENV['TEST_PHP_ARGS'] => -j10
$_ENV['TEST_PHP_EXECUTABLE'] => /Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cli/php
$_ENV['XPC_FLAGS'] => 0x0
$_ENV['TEST_PHPDBG_EXECUTABLE_ESCAPED'] => '/Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/phpdbg/phpdbg'
$_ENV['XPC_SERVICE_NAME'] => 0
$_ENV['_CE_M'] => 
$_ENV['SHLVL'] => 3
$_ENV['HOME'] => /Users/nurujjamanpollob
$_ENV['TEST_PHP_EXECUTABLE_ESCAPED'] => '/Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cli/php'
$_ENV['CONDA_PYTHON_EXE'] => /Users/nurujjamanpollob/miniforge3/bin/python
$_ENV['LOGNAME'] => nurujjamanpollob
$_ENV['MAKE_TERMERR'] => /dev/ttys000
$_ENV['SSH_CONNECTION'] => deleted
$_ENV['LC_CTYPE'] => UTF-8
$_ENV['TEST_PHP_CGI_EXECUTABLE_ESCAPED'] => '/Users/nurujjamanpollob/Downloads/php-src-php-8.3.0beta3/sapi/cgi/php-cgi'
$_ENV['CC'] => cc
$_ENV['NDK_ROOT'] => /Volumes/sdks/android/ndk/25.1.8937393

PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file:  LICENSE

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact license@php.net.

Thanks!

PHP Version

8.3.0 beta 3

Operating System

macOS 16.5.1

nielsdos commented 1 year ago

The DOM issue looks like a libxml2 bug, the encoding bit of that test is meant to check if the removal of the XML declaration isn't influenced by that. I guess I can adapt to use UTF-8 instead of BIG5 to work around the issue... I didn't have a look at the others.

nurujjamanpollob commented 1 year ago

@nielsdos OK let's see! I am going to test in another machine!

Thanks 😊

andypost commented 1 year ago

The commit 0fd226c also fixed the test ext/dom/tests/DOMDocument_saveXML_XML_SAVE_NO_DECL.phpt on Alpinelinux

maverick85 commented 5 months ago

Hi, Running macOS 12.7.4 (latest Monterey atm) in a MBP 2015 (macbookpro11,5)

Compiling from source with the following options:

./configure --prefix=/usr/local --with-system-ciphers --with-freetype --enable-mbstring --with-bz2 --enable-soap --enable-calendar --with-curl --with-gmp --enable-gd --with-pgsql --with-zlib --enable-pcntl --with-kerberos --enable-exif --enable-bcmath --with-mhash --with-zip --with-mysqli --with-jpeg --enable-ftp --with-imap-ssl --with-gettext --with-xsl --enable-opcache --enable-intl --with-readline --disable-phar

All goes through until make test, where it fails:

=====================================================================
TIME END 2024-05-08 14:32:43

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    28 (imap, dl_test, pspell, snmp, sysvshm, sockets, sysvmsg, sysvsem, dba, ldap, skeleton, phar, pdo_odbc, pdo_mysql, enchant, tidy, oci8, pdo_pgsql, ffi, odbc, zend_test, sodium, com_dotnet, shmop, openssl, pdo_dblib, pdo_oci, pdo_firebird)
Exts tested     :    45
---------------------------------------------------------------------

Number of tests : 18777             15085
Tests skipped   :  3692 ( 19.7%) --------
Tests warned    :     0 (  0.0%) (  0.0%)
Tests failed    :     1 (  0.0%) (  0.0%)
Expected fail   :    10 (  0.1%) (  0.1%)
Tests passed    : 15074 ( 80.3%) ( 99.9%)
---------------------------------------------------------------------
Time taken      :  1299 seconds
=====================================================================

=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
Test open_basedir configuration [tests/security/open_basedir_linkinfo.phpt]  XFAIL REASON: BUG: open_basedir cannot delete symlink to prohibited file. See also
bugs 48111 and 52176.
Bug #47847 (importNode loses the namespace of an XML element) [ext/dom/tests/bug47847.phpt]  XFAIL REASON: See https://github.com/php/php-src/pull/12308
Bug #55294 (DOMDocument::importNode shifts namespaces when "default" namespace exists) [ext/dom/tests/bug55294.phpt]  XFAIL REASON: See https://github.com/php/php-src/pull/12308
Bug #42718 (unsafe_raw filter not applied when configured as default filter) [ext/filter/tests/bug42718.phpt]  XFAIL REASON: FILTER_UNSAFE_RAW not applied when configured as default filter, even with flags
Bug #67296 (filter_input doesn't validate variables) [ext/filter/tests/bug49184.phpt]  XFAIL REASON: See Bug #49184
Bug #67167: filter_var(null,FILTER_VALIDATE_BOOLEAN,FILTER_NULL_ON_FAILURE) returns null [ext/filter/tests/bug67167.02.phpt]  XFAIL REASON: Requires php_zval_filter to not use convert_to_string for all filters.
datefmt_format_code() [ext/intl/tests/dateformat_format_variant3.phpt]  XFAIL REASON: This test assumes wrong data wrt to PDT. It is also too big and needs splitting up.
Return type check elision [ext/opcache/tests/opt/verify_return_type.phpt]  XFAIL REASON: Return types cannot be inferred through prototypes
via [ext/pdo_sqlite/tests/common.phpt]
    SQLite PDO Common: PDOStatement::getColumnMeta [ext/pdo_sqlite/tests/pdo_022.phpt]  XFAIL REASON: This feature is not yet finalized, no test makes sense
updateTimestamp never called when session data is empty [ext/session/tests/user_session_module/bug71162.phpt]  XFAIL REASON: Current session module is designed to write empty session always. In addition, current session module only supports SessionHandlerInterface only from PHP 7.0.
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #74090 stream_get_contents maxlength>-1 returns empty string on windows [ext/standard/tests/streams/bug74090.phpt]
=====================================================================

You may have found a problem in PHP.
This report can be saved and used to open an issue on the bug tracker at
https://github.com/php/php-src/issues
This gives us a better understanding of PHP's behavior.