|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-06-12 17:28 UTC] jon@php.net
[2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 06:00:01 2025 UTC |
Description: ------------ From cmd line the module works fine, but when the php work as apache module the script get SIGTERM inside the $p4->final( ); Server version: Apache/2.2.8 (Unix) Server built: Mar 26 2008 11:36:44 Server's Module Magic Number: 20051115:11 Server loaded: APR 1.2.8, APR-Util 1.2.8 Compiled using: APR 1.2.8, APR-Util 1.2.8 Architecture: 32-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="/usr/local/apache2" -D SUEXEC_BIN="/usr/local/apache2/bin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" root@slackware:~# php-config Usage: /usr/local/bin/php-config [OPTION] Options: --prefix [/usr/local] --includes [-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib] --ldflags [ -L/usr/lib/mysql] --libs [-lcrypt -lcrypt -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -lcrypt -lxml2 -lz -lm -lcrypt ] --extension-dir [/usr/local/lib/php/extensions/no-debug-non-zts-20060613] --include-dir [/usr/local/include/php] --php-binary [/usr/local/bin/php] --php-sapis [cli apache2handler] --configure-options [--with-apxs2=/usr/local/apache2/bin/apxs --enable-safe-mode --enable-pdo --disable-cgi --disable-ipv6 --disable-all --with-pdo-mysql --with-pcre-regex --enable-libxml --enable-xml --with-pear] --version [5.2.5] --vernum [50205] root@slackware:~# pear -V PEAR Version: 1.6.1 PHP Version: 5.2.5 Zend Engine Version: 2.2.0 Running on: Linux slackware 2.6.24 #5 SMP Thu Apr 10 16:13:08 EEST 2008 i686 p4 api version: p4api_r0703_linux26.tar Reproduce code: --------------- //------------------------------------------ function p4_exe_command( $command, $args ) //------------------------------------------ { /* Create the Perforce Client objects. */ $ui = new ClientUser(); $p4 = new PerforceClient($ui); $p4->setPort('public.perforce.com:1666'); /* Initialize the Perforce interface. */ if ( !$p4->init() ) { die( "Failed to initialize Perforce client interface.\n" ); } /* Shut down the Perforce interface. */ $p4->final( ); } All ClientUser methods is empty. Expected result: ---------------- The script have to exit without SIGTERM. Actual result: -------------- The script get SIGTERM inside the $p4->final( ); From apache log: [Wed Apr 16 13:51:09 2008] [notice] caught SIGTERM, shutting down