cvs: pear-core /Console Getopt.php

From: Date: Fri, 08 Dec 2006 17:28:37 +0000
Subject: cvs: pear-core /Console Getopt.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-5243@lists.php.net to get a copy of this message
andrei Fri Dec 8 17:28:37 2006 UTC Modified files: /pear-core/Console Getopt.php Log: Fix bug #4448 (Long parameter values truncated with longoption parameter). http://cvs.php.net/viewvc.cgi/pear-core/Console/Getopt.php?r1=1.28&r2=1.29&diff_format=u Index: pear-core/Console/Getopt.php diff -u pear-core/Console/Getopt.php:1.28 pear-core/Console/Getopt.php:1.29 --- pear-core/Console/Getopt.php:1.28 Thu Jan 8 17:33:10 2004 +++ pear-core/Console/Getopt.php Fri Dec 8 17:28:37 2006 @@ -16,7 +16,7 @@ // | Author: Andrei Zmievski <andrei@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Getopt.php,v 1.28 2004/01/08 17:33:10 sniper Exp $ +// $Id: Getopt.php,v 1.29 2006/12/08 17:28:37 andrei Exp $ require_once 'PEAR.php'; @@ -184,7 +184,7 @@ */ function _parseLongOption($arg, $long_options, &$opts, &$args) { - @list($opt, $opt_arg) = explode('=', $arg); + @list($opt, $opt_arg) = explode('=', $arg, 2); $opt_len = strlen($opt); for ($i = 0; $i < count($long_options); $i++) {

« previous php.pear.core (#5243) next »