cvs: phpdoc /scripts xml_proto.php

From: Date: Tue, 08 Jul 2003 03:29:13 +0000
Subject: cvs: phpdoc /scripts xml_proto.php
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969355097@lists.php.net to get a copy of this message
bradmssw Mon Jul 7 23:29:13 2003 EDT Modified files: /phpdoc/scripts xml_proto.php Log: problem with version check. Didn't work with PHP 5. Make it work now. Index: phpdoc/scripts/xml_proto.php diff -u phpdoc/scripts/xml_proto.php:1.8 phpdoc/scripts/xml_proto.php:1.9 --- phpdoc/scripts/xml_proto.php:1.8 Thu May 22 12:57:18 2003 +++ phpdoc/scripts/xml_proto.php Mon Jul 7 23:29:13 2003 @@ -16,7 +16,7 @@ # | Authors: Brad House <bradmssw@php.net> | # +----------------------------------------------------------------------+ # -# $Id: xml_proto.php,v 1.8 2003/05/22 16:57:18 philip Exp $ +# $Id: xml_proto.php,v 1.9 2003/07/08 03:29:13 bradmssw Exp $ */ /* @@ -667,8 +667,8 @@ function minimum_version($vercheck) { $minver = explode(".", $vercheck); $curver = explode(".", phpversion()); - if (($curver[0] < $minver[0]) || (($curver[0] = $minver[0]) && ($curver[1] < $minver[1])) || - (($curver[0] = $minver[0]) && ($curver[1] = $minver[1]) && ($curver[2][0] < $minver[2][0]))) { + if (($curver[0] < $minver[0]) || (($curver[0] == $minver[0]) && ($curver[1] < $minver[1])) || + (($curver[0] == $minver[0]) && ($curver[1] == $minver[1]) && ($curver[2][0] < $minver[2][0]))) { return false; } else { return true;

« previous php.doc (#969355097) next »