|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-12 12:21 UTC] danielc at analysisandsolutions dot com
[2004-07-12 15:22 UTC] mj@php.net
[2004-07-12 15:48 UTC] danielc at analysisandsolutions dot com
[2004-07-13 02:01 UTC] danielc at analysisandsolutions dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 20:00:01 2025 UTC |
Description: ------------ I'm out of town and can't easily verify this patch. However, if it works, please commit it. Index: public_html/release-upload.php =================================================================== RCS file: /repository/pearweb/public_html/release-upload.php,v retrieving revision 1.39 diff -u -r1.39 release-upload.php --- public_html/release-upload.php 22 Jun 2004 04:00:37 -0000 1.39 +++ public_html/release-upload.php 12 Jul 2004 15:44:44 -0000 @@ -216,6 +216,12 @@ . 'You may want to correct your package.xml file:'); // XXX ADD MASSIVE SANITY CHECKS HERE + + $version = $info['version']; + if (!preg_match('/^\d+\.\d+\.\d+(?:[a-z]+\d*)?$/', $version)) { + report_error('Version must in format digit.digit.digit[lower-case alpha[digits]]', 'errors','ERRORS:<br />' + . 'You must correct your package.xml file:'); + } $check = array( 'summary',