Zend Engine 2 and PEAR Console_Getopt

From: Date: Fri, 22 Nov 2002 15:45:27 +0000
Subject: Zend Engine 2 and PEAR Console_Getopt
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11006@lists.php.net to get a copy of this message
I'm using PEAR's Console_Getopt package and keep getting different result arrays from its getopt() method depending on which Zend Engine version I use: Code $options = Console_Getopt::getopt( $argv, '', array( 'format=', 'language=', 'no-highlighting', 'suffix=' ) ); Result of Console_Getopt::getopt call with Zend Engine 1 Array ( [0] => Array ( [0] => Array ( [0] => --format [1] => html-chunked ) ) [1] => Array ( ) ) Result of Console_Getopt::getopt call with Zend Engine 2 Array ( [0] => Array ( ) [1] => Array ( [0] => build [1] => --format [2] => html-chunked ) ) -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

« previous php.pear.dev (#11006) next »