|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2019-07-24 07:20 UTC] remi@php.net
Description:
------------
From php-fpm error-log
[24-Jul-2019 07:08:52 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Fedora\Autoloader\Autoload::addPsr4() in /usr/share/php/Fedora/Autoloader/autoload.php:18
Stack trace:
#0 /usr/share/glpi/vendor/autoload.php(4): require_once()
#1 /usr/share/glpi/inc/autoload.function.php(346): require_once('/usr/share/glpi...')
#2 /usr/share/glpi/inc/based_config.php(45): include_once('/usr/share/glpi...')
#3 /usr/share/glpi/index.php(44): include('/usr/share/glpi...')
#4 {main}
thrown in /usr/share/php/Fedora/Autoloader/autoload.php on line 18
While this file includes needed stuff.
See
https://github.com/php-fedora/autoloader
Here is the file which doesn't work
https://github.com/php-fedora/autoloader/blob/master/src/autoload.php
Issue only there when opcache is enabled.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 00:00:01 2025 UTC |
Strange..... With PHP-7.4 HEAD I got a segfault... (gdb) bt #0 0x00007ffff767da17 in __strlen_avx2 () from /lib64/libc.so.6 #1 0x00007ffff6f37889 in persistent_compile_file (type=8, file_handle=0x7fffffffbca0) at /work/build/php74/ext/opcache/ZendAccelerator.c:1917 #2 persistent_compile_file (file_handle=0x7fffffffbca0, type=8) at /work/build/php74/ext/opcache/ZendAccelerator.c:1876 #3 0x000000000089788d in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0, file_count=file_count@entry=3) at /tmp/php-7.4.0beta1/Zend/zend.c:1657 #4 0x000000000083b5c0 in php_execute_script (primary_file=primary_file@entry=0x7fffffffbca0) at /tmp/php-7.4.0beta1/main/main.c:2606 #5 0x00000000009222ba in php_cli_server_dispatch_script (server=server@entry=0x141aea0 <server>, client=client@entry=0x1443d60) at /tmp/php-7.4.0beta1/sapi/cli/php_cli_server.c:2077 #6 0x00000000009228ac in php_cli_server_dispatch (client=0x1443d60, server=0x141aea0 <server>) at /tmp/php-7.4.0beta1/sapi/cli/php_cli_server.c:2248 #7 php_cli_server_recv_event_read_request (server=0x141aea0 <server>, client=0x1443d60) at /tmp/php-7.4.0beta1/sapi/cli/php_cli_server.c:2492 #8 0x0000000000922bf0 in php_cli_server_do_event_for_each_fd_callback (_params=_params@entry=0x7fffffffbf20, fd=fd@entry=5, event=event@entry=1) at /tmp/php-7.4.0beta1/sapi/cli/php_cli_server.c:2578 #9 0x00000000009236f6 in php_cli_server_poller_iter_on_active (poller=0x141aea8 <server+8>, callback=0x922bb0 <php_cli_server_do_event_for_each_fd_callback>, opaque=0x7fffffffbf20) at /tmp/php-7.4.0beta1/sapi/cli/php_cli_server.c:919 #10 php_cli_server_do_event_for_each_fd (whandler=0x921480 <php_cli_server_send_event>, rhandler=0x9222c0 <php_cli_server_recv_event_read_request>, server=0x141aea0 <server>) at /tmp/php-7.4.0beta1/sapi/cli/php_cli_server.c:2596 #11 php_cli_server_do_event_loop (server=0x141aea0 <server>) at /tmp/php-7.4.0beta1/sapi/cli/php_cli_server.c:2606 #12 do_cli_server (argc=argc@entry=11, argv=argv@entry=0x14264d0) at /tmp/php-7.4.0beta1/sapi/cli/php_cli_server.c:2734 #13 0x000000000063bc0d in main (argc=11, argv=0x14264d0) at /tmp/php-7.4.0beta1/sapi/cli/php_cli.c:1355 (gdb) quit Could this be related to build options (RPM default ones) ? CFLAGS="${CFLAGS:--O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection}" ; export CFLAGS ; LDFLAGS="${LDFLAGS:--Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld}" ; export LDFLAGS;