Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

make test 007 failure on PHP 7.2 and after #11

Closed
Joungkyun opened this issue Feb 13, 2022 · 0 comments
Closed

make test 007 failure on PHP 7.2 and after #11

Joungkyun opened this issue Feb 13, 2022 · 0 comments
Assignees
Milestone

Comments

@Joungkyun
Copy link
Member

Since PHP 7.2, make test 007 is always fail.

=====================================================================
PHP         : /opt/php-qa/php80/bin/php
PHP_SAPI    : cli
PHP_VERSION : 8.0.15
ZEND_VERSION: 4.0.15
PHP_OS      : Linux - Linux an3.pkg.oops.org 3.10.0-693.11.1.el7.x86_64 #1 SMP Mon Dec 4 23:52:40 UTC 2017 x86_64
INI actual  : /root/work/github/php/mod_magic/tmp-php.ini
More .INIs  :
CWD         : /root/work/github/php/mod_magic
Extra dirs  :
VALGRIND    : Not used
=====================================================================
TIME START 2022-02-13 16:19:18
=====================================================================
PASS Check for magic presence [tests/001-enable.phpt]
PASS Check for execute with magic ('modules/magic.so') [tests/002-1arg.phpt]
PASS Check for using user magic file [tests/003-user-magicfile.phpt]
PASS Check for with MAGIC_MIME_ENCODING flag [tests/004-with-flag.phpt]
PASS Check for with MAGIC_MIME flag and user magic file [tests/005-flag-magicfile.phpt]
PASS Check for with swaping order of MAGIC_MIME flag and user magic file [tests/006-magicfile-flag.phpt]
FAIL Check for $php_errormsg variables [tests/007-php-errormsg.phpt]
PASS Check for error_get_last function [tests/008-error-get-last.phpt]
PASS Check for data control [tests/009-data-control.phpt]
=====================================================================
TIME END 2022-02-13 16:19:18

Since PHP 7.2, track_errors ini entry is deprecated, and execute test 007, returns follow:

[root@an3 mod_magic]$ tests/007-php-errormsg.sh

Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
modules/magic.so1 file not found.

Since PHP 8.0, track_error is removed. So execute test 007, returns follow:

[root@an3 mod_magic]$ tests/007-php-errormsg.sh

Fatal error: Directive 'track_errors' is no longer available in PHP in Unknown on line 0
@Joungkyun Joungkyun added this to the 3.0.2 milestone Feb 13, 2022
@Joungkyun Joungkyun self-assigned this Feb 13, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant