didou Sun Mar 4 03:57:35 2007 UTC
Modified files:
/phpdoc/scripts/check_phpdoc build.php
Log:
Fix path and get rid of the transaction thingy
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/check_phpdoc/build.php?r1=1.1&r2=1.2&diff_format=u
Index: phpdoc/scripts/check_phpdoc/build.php
diff -u phpdoc/scripts/check_phpdoc/build.php:1.1
phpdoc/scripts/check_phpdoc/build.php:1.2
--- phpdoc/scripts/check_phpdoc/build.php:1.1 Sat Mar 3 03:05:33 2007
+++ phpdoc/scripts/check_phpdoc/build.php Sun Mar 4 03:57:35 2007
@@ -16,7 +16,7 @@
| Authors: Mehdi Achour <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: build.php,v 1.1 2007/03/03 03:05:33 didou Exp $
+ $Id: build.php,v 1.2 2007/03/04 03:57:35 didou Exp $
*/
/**
@@ -31,7 +31,7 @@
$status = array();
-foreach (glob('../en/reference/*/*/*.xml') as $function) {
+foreach (glob('../../en/reference/*/*/*.xml') as $function) {
$path = explode('/', $function);
$extension = $path[count($path) - 3];
@@ -217,9 +217,7 @@
$idx = sqlite_open("check_phpdoc.sqlite");
-$qry_str = '
-DROP TABLE IF EXISTS reference;
-CREATE TABLE reference (
+sqlite_query($idx, 'CREATE TABLE reference (
extension char(40),
funcname char(200),
oldstyle integer,
@@ -231,16 +229,16 @@
noparameters integer,
noexamples integer,
noerrors integer
-);';
+);');
+$qry_str = '';
foreach ($status as $extension => $functions) {
foreach ($functions as $function => $attrs) {
$qry_str .= 'INSERT INTO reference (extension, funcname, ' .
implode(', ', array_keys($attrs)) . ') VALUES ("' . $extension . '", "' .
$function . '", ' . implode(', ', $attrs) . ');';
}
}
-echo $qry_str;
-sqlite_exec($idx, 'BEGIN TRANSACTION; '.$qry_str.' COMMIT');
+sqlite_query($idx, $qry_str);
unset($qry_str);
sqlite_close($idx);