cvs: pear /FSM FSM.php package.xml /FSM/tests 001.phpt

From: Date: Tue, 30 Sep 2003 17:35:05 +0000
Subject: cvs: pear /FSM FSM.php package.xml /FSM/tests 001.phpt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13191@lists.php.net to get a copy of this message
jon Tue Sep 30 13:35:05 2003 EDT Modified files: /pear/FSM FSM.php package.xml /pear/FSM/tests 001.phpt Log: Fixing call-time pass-by-reference issues with Zend Engine 2. Submitted by: Pierre-Alain Joye Index: pear/FSM/FSM.php diff -u pear/FSM/FSM.php:1.6 pear/FSM/FSM.php:1.7 --- pear/FSM/FSM.php:1.6 Tue Jul 15 16:40:01 2003 +++ pear/FSM/FSM.php Tue Sep 30 13:35:04 2003 @@ -16,7 +16,7 @@ * | Authors: Jon Parise <jon@php.net> | * +----------------------------------------------------------------------+ * - * $Id: FSM.php,v 1.6 2003/07/15 20:40:01 jon Exp $ + * $Id: FSM.php,v 1.7 2003/09/30 17:35:04 jon Exp $ */ /** @@ -27,11 +27,11 @@ * (a finite state machine with memory). * * @author Jon Parise <jon@php.net> - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package FSM */ -class FSM { - +class FSM +{ /** * Represents the initial state of the machine. * @@ -256,7 +256,7 @@ /* If an action for this transition has been specified, execute it. */ if (!empty($transition[1])) { - $state = call_user_func($transition[1], $symbol, &$this->_payload); + $state = call_user_func($transition[1], $symbol, $this->_payload); /* If a new state was returned, update the current state. */ if (!empty($state) && is_string($state)) { Index: pear/FSM/package.xml diff -u pear/FSM/package.xml:1.4 pear/FSM/package.xml:1.5 --- pear/FSM/package.xml:1.4 Sat Jul 12 13:56:08 2003 +++ pear/FSM/package.xml Tue Sep 30 13:35:04 2003 @@ -16,11 +16,11 @@ </maintainer> </maintainers> <release> - <version>1.1.0</version> - <date>2002-12-29</date> + <version>1.2.0</version> + <date>2003-09-30</date> <state>stable</state> <notes> -Callback functions may optionally return the name of a new state. +Fixing the call-time pass-by-reference issues with Zend Engine 2. </notes> <filelist> <dir name="/"> @@ -29,6 +29,14 @@ </filelist> </release> <changelog> + <release> + <version>1.1.0</version> + <date>2002-12-29</date> + <state>stable</state> + <notes> +Callback functions may optionally return the name of a new state. + </notes> + </release> <release> <version>1.0.0</version> <date>2002-11-09</date> Index: pear/FSM/tests/001.phpt diff -u pear/FSM/tests/001.phpt:1.1 pear/FSM/tests/001.phpt:1.2 --- pear/FSM/tests/001.phpt:1.1 Sat Nov 16 15:59:43 2002 +++ pear/FSM/tests/001.phpt Tue Sep 30 13:35:05 2003 @@ -5,19 +5,19 @@ require_once 'FSM.php'; -function defaultTransition($symbol, $payload) +function defaultTransition($symbol, &$payload) { array_push($payload, $symbol); echo "Default\n"; } -function transition1($symbol, $payload) +function transition1($symbol, &$payload) { array_push($payload, $symbol); echo "Transition 1\n"; } -function transition2($symbol, $payload) +function transition2($symbol, &$payload) { array_push($payload, $symbol); echo "Transition 2\n";

« previous php.pear.cvs (#13191) next »