cvs: phpdoc /scripts/iniupdate ini-update.php

From: Date: Fri, 18 Nov 2005 20:44:49 +0000
Subject: cvs: phpdoc /scripts/iniupdate ini-update.php
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969370926@lists.php.net to get a copy of this message
nlopess Fri Nov 18 15:44:49 2005 EDT Modified files: /phpdoc/scripts/iniupdate ini-update.php Log: fix loading of some ini.xml tables also add more debuging messages http://cvs.php.net/diff.php/phpdoc/scripts/iniupdate/ini-update.php?r1=1.5&r2=1.6&ty=u Index: phpdoc/scripts/iniupdate/ini-update.php diff -u phpdoc/scripts/iniupdate/ini-update.php:1.5 phpdoc/scripts/iniupdate/ini-update.php:1.6 --- phpdoc/scripts/iniupdate/ini-update.php:1.5 Wed Jul 20 15:10:31 2005 +++ phpdoc/scripts/iniupdate/ini-update.php Fri Nov 18 15:44:49 2005 @@ -49,10 +49,15 @@ preg_match_all('@<row>.+</row>@USs', $match, $matches_row); foreach ($matches_row[0] as $match_row) { - preg_match_all('@<entry>.+</entry>@USs', $match_row, $matches_entry); + preg_match_all('@<entry>.*</entry>@USs', $match_row, $matches_entry); foreach ($matches_entry as $val) { + if (count($val) < 3) { + echo "problem in $filename:\n" . print_r($val, 1) . "\n"; + continue; + } + // create changelog column if (count($val) == 3) { $file = preg_replace("@(<row>\s*$val[0]\s*$val[1](\s*)".preg_quote($val[2]).')(\s*</row>)@', '\1\2<entry></entry>\3', $file);

« previous php.doc (#969370926) next »