|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-11-01 09:47 UTC] sniper@php.net
[2001-03-29 11:48 UTC] sniper@php.net
[2001-04-28 15:34 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 15:00:01 2025 UTC |
(minor flaw, don't know if it's important, but maybe worth a check) I registered a shutdown function via register_shutdown_function(). For debugging purposes and because echo() isn't functional in the shutdown function, I used error_log('my log message',0), so that the "error"-messages showed up in apache/logs/error_log. The error_log()-call in "normal code" produced an entry in apache error_log with timestamp and error type, and the error_log()-call in my shutdown callback function appeared without timestamp and error type (see snippet below) ---- example PHP-code function myshutdown () { error_log('myshutdown() executed',0); } register_shutdown_function('myshutdown'); error_log('myshutdown-function registered',0); ---- Apache logs/error_log snippet [Fri Sep 8 11:43:43 2000] [notice] Apache/1.3.12 (Unix) PHP/4.0.2 configured -- resuming normal operations [Fri Sep 8 11:43:52 2000] [error] myshutdown-function registered myshutdown() executed