pcntl - class callbacks
| From: | Alan Knowles | Date: | Thu, 08 Aug 2002 07:19:19 +0000 |
| Subject: | pcntl - class callbacks | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-86623@lists.php.net to get a copy of this message | ||
Attached is a fully tested patch for class based callbacks on
pcntl_signal .. the appear only to work if you build pcntl into php, not
as a module..
the only problem i have with it however is the leaking of memory.. - any
hints would be nice..
511 is the zval_copy_ctor(handle_copy); line....
/usr/src/php/php4/Zend/zend_execute.c(1694) : Freeing 0x08223360 (12
bytes), script=test-pcntl2.php
Last leak repeated 1 time
/usr/src/php/php4/Zend/zend_API.c(1355) : Freeing 0x08223318 (21
bytes), script=test-pcntl2.php
Last leak repeated 3 times
/usr/src/php/php4/Zend/zend_hash.c(178) : Freeing 0x082232C8 (32
bytes), script=test-pcntl2.php
Last leak repeated 3 times
/usr/src/php/php4/Zend/zend_hash.c(406) : Freeing 0x082231E8 (35
bytes), script=test-pcntl2.php
Last leak repeated 3 times
/usr/src/php/php4/Zend/zend_execute_API.c(413) : Freeing 0x08223038 (12
bytes), script=test-pcntl2.php
Last leak repeated 3 times
/usr/src/php/php4/Zend/zend_execute.c(2001) : Freeing 0x08222EE0 (13
bytes), script=test-pcntl2.php
/usr/src/php/php4/Zend/zend_variables.c(106) : Actual location (location
was relayed)
Last leak repeated 1 time
/usr/src/php/php4/Zend/zend_execute.c(1998) : Freeing 0x08222EA0 (12
bytes), script=test-pcntl2.php
Last leak repeated 1 time
/usr/src/php/php4/ext/pcntl/pcntl.c(511) : Freeing 0x08222378 (44
bytes), script=test-pcntl2.php
/usr/src/php/php4/Zend/zend_variables.c(117) : Actual location (location
was relayed)
Last leak repeated 1 time