Edit report at http://bugs.php.net/bug.php?id=54501&edit=1
ID: 54501 Updated by: ahar...@php.net Reported by: fireangel_info at yahoo dot com Summary: event_buffer_write from libevent dont work in a forked process -Status: Open +Status: Bogus Type: Bug Package: PCNTL related Operating System: Debian-60-squeeze-64-minimal PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: Please report bugs in PECL packages on the PECL bug tracker; in this case, at http://pecl.php.net/bugs/report.php?package=event Previous Comments: ------------------------------------------------------------------------ [2011-04-10 02:42:18] fireangel_info at yahoo dot com Description: ------------ --- >From manual page: http://www.php.net/function.event-buffer-write#Return Values --- // event_buffer_write($buffer,'asdawdasd'); <== here it will send the 'asdawdasd' $pid = pcntl_fork(); switch ($pid) { case -1: // Error die('Fork failed'); break; case 0: // Child $thispid=posix_getpid(); event_buffer_write($buffer,'asdawdasd');// $buffer is a valid connection/ <== here it will NOT send the 'asdawdasd' posix_kill($thispid, 9); break; } /* $buffer resource is transmited to the child but event_buffer_write wont run. */ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54501&edit=1