svn: /pecl/apc/trunk/ apc.c apc.h apc_bin.c apc_cache.c apc_cache.h apc_debug.c apc_fcntl.c apc_fcntl.h apc_fcntl_win32.c apc_iterator.c apc_lock.h
apc_main.c apc_mmap.c apc_mmap.h apc_pthreadmutex.c apc_pthreadmutex.h apc_rfc1867.c apc_sem.c apc_sem.h apc_shm.c apc_shm.h apc_signal.c apc_sma.c
apc_spin.c apc_spin.h apc_stack.c apc_stack.h apc_zend.c package.xml pgsql_s_lock.c pgsql_s_lock.h php_apc.c
| From: | Kalle Sommer Nielsen | Date: | Fri, 13 Aug 2010 06:20:28 +0000 |
| Subject: | svn: /pecl/apc/trunk/ apc.c apc.h apc_bin.c apc_cache.c apc_cache.h apc_debug.c apc_fcntl.c apc_fcntl.h apc_fcntl_win32.c apc_iterator.c apc_lock.h apc_main.c apc_mmap.c apc_mmap.h apc_pthreadmutex.c apc_pthreadmutex.h apc_rfc1867.c apc_sem.c apc_sem.h apc_shm.c apc_shm.h apc_signal.c apc_sma.c apc_spin.c apc_spin.h apc_stack.c apc_stack.h apc_zend.c package.xml pgsql_s_lock.c pgsql_s_lock.h php_apc.c |
||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-14592@lists.php.net to get a copy of this message | ||
kalle Fri, 13 Aug 2010 06:20:28 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=302175
Log:
Remove TSRMLS_FETCH() calls inside our error functions, this patch also renames the
functions to their respective function rather than "apc_<x>printf(...)". Below is a
shows the renamed functions:
- apc_eprint - apc_error
- apc_wprint - apc_warning
- apc_nprint - apc_notice
- apc_dprint - apc_debug
Notice that the apc_debug() function now only is available if the
__DEBUG_APC__ macro is definfed.
Error call signature have changed aswell and required the TSRMLS
macros to be passed at every call. Below example illustrates whats
change:
Before:
apc_wprint("Unable to allocate %d bytes", bytes);
After:
apc_warning("Unable to allocate %d bytes" TSRMLS_CC, bytes));
Also Thanks to Pierrick (adoy@) for testing and helping with a few
fixes for the UNIX build.
Changed paths:
U pecl/apc/trunk/apc.c
U pecl/apc/trunk/apc.h
U pecl/apc/trunk/apc_bin.c
U pecl/apc/trunk/apc_cache.c
U pecl/apc/trunk/apc_cache.h
U pecl/apc/trunk/apc_debug.c
U pecl/apc/trunk/apc_fcntl.c
U pecl/apc/trunk/apc_fcntl.h
U pecl/apc/trunk/apc_fcntl_win32.c
U pecl/apc/trunk/apc_iterator.c
U pecl/apc/trunk/apc_lock.h
U pecl/apc/trunk/apc_main.c
U pecl/apc/trunk/apc_mmap.c
U pecl/apc/trunk/apc_mmap.h
U pecl/apc/trunk/apc_pthreadmutex.c
U pecl/apc/trunk/apc_pthreadmutex.h
U pecl/apc/trunk/apc_rfc1867.c
U pecl/apc/trunk/apc_sem.c
U pecl/apc/trunk/apc_sem.h
U pecl/apc/trunk/apc_shm.c
U pecl/apc/trunk/apc_shm.h
U pecl/apc/trunk/apc_signal.c
U pecl/apc/trunk/apc_sma.c
U pecl/apc/trunk/apc_spin.c
U pecl/apc/trunk/apc_spin.h
U pecl/apc/trunk/apc_stack.c
U pecl/apc/trunk/apc_stack.h
U pecl/apc/trunk/apc_zend.c
U pecl/apc/trunk/package.xml
U pecl/apc/trunk/pgsql_s_lock.c
U pecl/apc/trunk/pgsql_s_lock.h
U pecl/apc/trunk/php_apc.c
Attachment: [text/x-diff] svn-diffs-302175.txt
Attachment: [text/x-diff] svn-diffs-302175.txt