note 86130 deleted from features.commandline by cmb

From: Date: Sun, 18 Dec 2016 10:17:34 +0000
Subject: note 86130 deleted from features.commandline by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208662@lists.php.net to get a copy of this message
Note Submitter: tom at thomas dot harding dot net ---- To allow a "zero" option value: replace: $ret['options'][$com] = !empty($value) ? $value : true; by: $ret['options'][$com] = (strlen($value) > 0 ? $value : true); In the sample below. Thanks to Chris Chubb to point me out the problem

« previous php.notes (#208662) next »