svn: /pecl/judy/trunk/examples/ judy.php
| From: | Nicolas Brousse | Date: | Mon, 21 Oct 2013 03:57:17 +0000 |
| Subject: | svn: /pecl/judy/trunk/examples/ judy.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-19933@lists.php.net to get a copy of this message | ||
nicolas Mon, 21 Oct 2013 03:57:17 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=331890
Log:
fix notice
Changed paths:
U pecl/judy/trunk/examples/judy.php
Modified: pecl/judy/trunk/examples/judy.php
===================================================================
--- pecl/judy/trunk/examples/judy.php 2013-10-21 03:20:50 UTC (rev 331889)
+++ pecl/judy/trunk/examples/judy.php 2013-10-21 03:57:17 UTC (rev 331890)
@@ -17,8 +17,10 @@
echo "$br\n";
$constants = get_defined_constants(true);
echo "Constants available in $module extension:$br\n";
-foreach ($constants[$module] as $const => $v) {
+if (in_array($module, $constants) {
+ foreach ($constants[$module] as $const => $v) {
echo "\t$const => $v$br\n";
+ }
}
$class=array('Judy');