cvs: pearweb /cron bug-update-php-version.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sun, 16 Mar 2008 13:51:50 +0000 |
| Subject: | cvs: pearweb /cron bug-update-php-version.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-7334@lists.php.net to get a copy of this message | ||
dufuz Sun Mar 16 13:51:50 2008 UTC
Modified files:
/pearweb/cron bug-update-php-version.php
Log:
Bug #13399 BugDB: PHP CVS versions are of by many months
http://cvs.php.net/viewvc.cgi/pearweb/cron/bug-update-php-version.php?r1=1.6&r2=1.7&diff_format=u
Index: pearweb/cron/bug-update-php-version.php
diff -u pearweb/cron/bug-update-php-version.php:1.6 pearweb/cron/bug-update-php-version.php:1.7
--- pearweb/cron/bug-update-php-version.php:1.6 Mon Jan 7 09:54:23 2008
+++ pearweb/cron/bug-update-php-version.php Sun Mar 16 13:51:50 2008
@@ -16,7 +16,7 @@
* | Authors: Helgi Þormar Þorbjörnsson <dufuz@php.net> |
* +----------------------------------------------------------------------+
*
- * $Id: bug-update-php-version.php,v 1.6 2008/01/07 09:54:23 mj Exp $
+ * $Id: bug-update-php-version.php,v 1.7 2008/03/16 13:51:50 dufuz Exp $
*/
// fetch the data
@@ -33,7 +33,7 @@
$n5 = unserialize($new5);
$n4 = unserialize($new4);
-$file = '@www_dir@/public_html/bugs/include/php_versions.php';
+$file = '../public_html/bugs/include/php_versions.php';
include $file;
$php4 = $php = array();
@@ -60,6 +60,9 @@
$final = array_merge($merge, $merge4);
$data = var_export($final, true);
+// var_export parses date() and just uses its output, fixing that
+$data = str_replace(date('Y-m-d') . "',", '\' .
date(\'Y-m-d\'),', $data);
+
$output = '<?php
$versions = ' . $data . ';';