#15125 [NoF->Asn]: pnctl_signal does not handle class's as callbacks - patch included

From: Date: Tue, 13 Aug 2002 04:55:40 +0000
Subject: #15125 [NoF->Asn]: pnctl_signal does not handle class's as callbacks - patch included
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16571@lists.php.net to get a copy of this message
ID: 15125 Updated by: alan_k@php.net Reported By: alan_k@php.net -Status: No Feedback +Status: Assigned Bug Type: *Extensibility Functions Operating System: Linux PHP Version: 4.0CVS-2002-01-20 -Assigned To: +Assigned To: jason New Comment: testing and working patch has been posted to php-dev assigning to jason :) Previous Comments: ------------------------------------------------------------------------ [2002-08-06 01:00:11] php-bugs@lists.php.net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-07-05 01:37:53] alan_k@php.net I will look at this soon promise... ------------------------------------------------------------------------ [2002-07-05 01:00:06] php-bugs@lists.php.net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-06-04 06:49:19] mfischer@php.net Alan, can you send a diff -u to php-dev@ against latest CVS ? ------------------------------------------------------------------------ [2002-03-30 18:16:52] me@murpheous.com This is really irritating... Tried the patch/fix provided, to no avail! :( Tested in 4.1.2 and also latest 4.2 public RC (30/03/2002). Simpler test scenario... Doesnt work.. no errors, no callbacks :( Also tried setting class vars from outside class, e.g: pcntl_signal(SIGTERM, array(&$signal, "display_signal")); after defining class.. no good either! :( <? class signalClass { function display_signal($signo) { echo "** $signo **\n"; flush(); exit(); } function define_signals() { pcntl_signal(SIGTERM, array(&$this, "display_signal")); pcntl_signal(SIGHUP, array(&$this, "display_signal")); pcntl_signal(SIGINT, array(&$this, "display_signal")); } } $signal = new signalClass(); $signal->define_signals(); while(1) { // do something here.. sleep(1); } ?> But this works as expected.. :( <? function display_signal($signo) { echo "** $signo **\n"; flush(); exit(); } pcntl_signal(SIGTERM, "display_signal"); pcntl_signal(SIGHUP, "display_signal"); pcntl_signal(SIGINT, "display_signal"); while(1) { // do something here.. sleep(1); } ?> ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/15125 -- Edit this bug report at http://bugs.php.net/?id=15125&edit=1

« previous php.bugs (#16571) next »