cvs: pear /Games_Chess Chess.php

From: Date: Wed, 04 Oct 2006 19:01:27 +0000
Subject: cvs: pear /Games_Chess Chess.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42413@lists.php.net to get a copy of this message
cellog Wed Oct 4 19:01:27 2006 UTC Modified files: /pear/Games_Chess Chess.php Log: fix potential errant PEAR_Errors propagating up to PEAR_Error callbacks discovered by new .phpt tests http://cvs.php.net/viewvc.cgi/pear/Games_Chess/Chess.php?r1=1.16&r2=1.17&diff_format=u Index: pear/Games_Chess/Chess.php diff -u pear/Games_Chess/Chess.php:1.16 pear/Games_Chess/Chess.php:1.17 --- pear/Games_Chess/Chess.php:1.16 Wed Oct 4 04:41:44 2006 +++ pear/Games_Chess/Chess.php Wed Oct 4 19:01:27 2006 @@ -16,7 +16,7 @@ // | Authors: Gregory Beaver <cellog@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Chess.php,v 1.16 2006/10/04 04:41:44 cellog Exp $ +// $Id: Chess.php,v 1.17 2006/10/04 19:01:27 cellog Exp $ /** * The Games_Chess Package * @@ -614,7 +614,9 @@ foreach($canmove as $move) { $this->startTransaction(); $this->_move = $color; + PEAR::pushErrorHandling(PEAR_ERROR_RETURN); $err = $this->moveSquare($a, $move); + PEAR::popErrorHandling(); $this->rollbackTransaction(); if (!is_object($err)) { return false;

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