cvs: pear /CodeGen_PECL/PECL Extension.php

From: Date: Sun, 31 Jul 2005 17:24:34 +0000
Subject: cvs: pear /CodeGen_PECL/PECL Extension.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-33483@lists.php.net to get a copy of this message
hholzgra Sun Jul 31 13:24:34 2005 EDT Modified files: /pear/CodeGen_PECL/PECL Extension.php Log: getter for php contants array added, use with->getSummary() instead of with->summary as the property is now protected http://cvs.php.net/diff.php/pear/CodeGen_PECL/PECL/Extension.php?r1=1.4&r2=1.5&ty=u Index: pear/CodeGen_PECL/PECL/Extension.php diff -u pear/CodeGen_PECL/PECL/Extension.php:1.4 pear/CodeGen_PECL/PECL/Extension.php:1.5 --- pear/CodeGen_PECL/PECL/Extension.php:1.4 Tue Jul 26 05:21:40 2005 +++ pear/CodeGen_PECL/PECL/Extension.php Sun Jul 31 13:24:33 2005 @@ -15,7 +15,7 @@ * @author Hartmut Holzgraefe <hartmut@php.net> * @copyright 2005 Hartmut Holzgraefe * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Extension.php,v 1.4 2005/07/26 09:21:40 hholzgra Exp $ + * @version CVS: $Id: Extension.php,v 1.5 2005/07/31 17:24:33 hholzgra Exp $ * @link http://pear.php.net/package/CodeGen */ @@ -425,6 +425,17 @@ return $this->resources; } + /** + * Get PHP constants + * + * @access public + * @return array + */ + function getConstants() + { + return $this->constants; + } + /** * Add a PHP class to the extension @@ -1535,15 +1546,16 @@ foreach ($this->with as $with) { - if ($with->getName() != $this->name) { + $withName = $with->getName(); + $withUpname = strtoupper($withName); + + if ($withName != $this->name) { echo " -PHP_ARG_WITH({$with->name}, {$with->summary}, -[ --with-{$with->name}[=DIR] With {$with->name} support]) +PHP_ARG_WITH({$withName}, {".$with->getSummary()."}, +[ --with-{$withName}[=DIR] With {$withName} support]) \n"; } - $withUpname = strtoupper($with->getName()); - echo " if test -r \"\$PHP_$withUpname/".$with->getTestfile()."\"; then PHP_{$withUpname}_DIR=\"\$PHP_$withUpname\"

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