|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59222 Error message function modifications
Submitted: 2010-05-20 05:46 UTC Modified: 2010-05-25 08:57 UTC
From: Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.2.10 OS: Ubuntu
Private report: No CVE-ID: None
 [2010-05-20 05:46 UTC]
1) We used to have my_log() which was doing manual output to 'stderr'. This function no longer exists.

2) The apc_eprint()..etc functions that used to call my_log() now directly invoke a php_error_docref().

3) apc_dprint() was #ifdef for APC_DEBUG, where it should have been doing APC_DBG

4) The enum{} for APC_ERROR, APC_WARNING..etc are no longer needed. Now only APC_DBG exists.

Reproduce code:
The existing functions calling apc_eprint, nprint, dprint are all still in place, this is backwards compatible.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-20 05:51 UTC] dragoonis at gmail dot com
Enum change for apc.h

Function changes for apc.c
 [2010-05-24 09:18 UTC] dragoonis at gmail dot com
changed #ifdef APC_DBG back to APC_DEBUG

Merged the apc.h and apc.c changes into one .patch diff file
 [2010-05-24 11:04 UTC] dragoonis at gmail dot com
Removed the enum and had apc_eprint() throw E_ERROR instead of E_NOTICE
 [2010-05-25 08:57 UTC] gopalv82 at yahoo dot com
Merged into trunk.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Jan 17 04:03:36 2022 UTC