Io_add_watch in 2.0.0 windows beta

From: Date: Thu, 28 Jun 2007 17:17:11 +0000
Subject: Io_add_watch in 2.0.0 windows beta
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7957@lists.php.net to get a copy of this message
Hello, I'm having problems using the beta build in windows (php-gtk-2.0.0 beta Windows binary with Gtk+ 2.10). It seems that Gtk::io_add_watch can't detect HUP conditions, the example [1] works well on both alpha/beta linux and alpha window's release. It should print: STDOUT [Dir contents] HUP EXIT But In the windows beta version, the hup signal it's not catched at all, and the script never finishes. Any suggestion or idea? Where can I get more Information? Thanks in advance. Sebastián Marconi [1] <?php function out($pipe) { echo "STDOUT\n"; echo stream_get_contents($pipe); } function hup($pipe){ echo "HUP\n"; Gtk::main_quit(); return false; } $pipes = null; $descriptor = array( 0 => array("pipe", "r"), // stdin 1 => array("pipe", "w"), // stdout is a pipe that the child will write to 2 => array("pipe", "w") // stderr ); $cmd = 'dir'; $p = proc_open($cmd, $descriptor, $pipes); Gtk::io_add_watch($pipes[1],Gtk::IO_IN, 'out'); Gtk::io_add_watch($pipes[1],Gtk::IO_HUP, 'hup'); Gtk::main(); echo "EXIT\n"; fclose($pipes[0]); fclose($pipes[1]); fclose($pipes[2]); ?>

« previous php.gtk.general (#7957) next »