From nobody@FreeBSD.org  Fri Jul 23 22:05:29 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EFC2816A4CF
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Jul 2004 22:05:29 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E168243D55
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Jul 2004 22:05:29 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i6NM5Ti5022454
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Jul 2004 22:05:29 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i6NM5Tn1022453;
	Fri, 23 Jul 2004 22:05:29 GMT
	(envelope-from nobody)
Message-Id: <200407232205.i6NM5Tn1022453@www.freebsd.org>
Date: Fri, 23 Jul 2004 22:05:29 GMT
From: Martin Waedt <martin@waedt.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: phpMyAdmin-2.5.7.1 doesnt work with php4-4.3.8_1  apache-2.0.50
X-Send-Pr-Version: www-2.3

>Number:         69506
>Category:       ports
>Synopsis:       phpMyAdmin-2.5.7.1 doesn't work with php4-4.3.8_1  apache-2.0.50
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 23 22:10:23 GMT 2004
>Closed-Date:    Sat Jul 24 17:16:59 GMT 2004
>Last-Modified:  Sat Jul 24 17:16:59 GMT 2004
>Originator:     Martin Waedt
>Release:        4.9-STABLE
>Organization:
Waedt GmbH
>Environment:
FreeBSD corinthian.office.niebauer 4.9-STABLE FreeBSD 4.9-STABLE #5: Sat Mar 27 12:54:04 CET 2004     root@corinthian.office.niebauer.com:/usr/obj/usr/src/sys/CORINTHIAN  i386
>Description:
After upgrading php4 to version 4-4.3.8_1 phpmyadmin doesn't work  anymore
Following error occures:

Fatal error: Call to undefined function: preg_match() in /usr/local/www/phpMyAdmin/libraries/defines.lib.php on line 25



I'm not a php pro but I think it has something to do with the Version string.

// php version
if (!defined('PMA_PHP_INT_VERSION')) {
    if (!preg_match('@([0-9]{1,2}).([0-9]{1,2}).([0-9]{1,2})@', phpversion(), $match)) {
        $result = preg_match('@([0-9]{1,2}).([0-9]{1,2})@', phpversion(), $match);
 
It looks like that phpmyadmin is not able to get the version of php.
>How-To-Repeat:
Upgrade to php 4-4.3.8_1
It also occures with 5.2.1-RELEASE-p9.
>Fix:
I'm not a php pro but I think it has something to do with the Version string.

line 25 of phpMyAdmin/libraries/defines.lib.php

// php version
if (!defined('PMA_PHP_INT_VERSION')) {
    if (!preg_match('@([0-9]{1,2}).([0-9]{1,2}).([0-9]{1,2})@', phpversion(), $match)) {
        $result = preg_match('@([0-9]{1,2}).([0-9]{1,2})@', phpversion(), $match);
 
It looks like that phpmyadmin is not able to get the version of php.
>Release-Note:
>Audit-Trail:

From: Matthew Seaman <m.seaman@infracaninophile.co.uk>
To: Martin Waedt <martin@waedt.net>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: ports/69506: phpMyAdmin-2.5.7.1 doesn?t work with php4-4.3.8_1  apache-2.0.50
Date: Sat, 24 Jul 2004 11:26:18 +0100

 --Bn2rw/3z4jIqBvZU
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 The fix for this problem was submitted in PR ports/69336 last Tuesday.
 Could someone please commit that?
 
 	Cheers,
 
 	Matthew
 
 --=20
 Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                       Savill Way
 PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
 Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
 
 --Bn2rw/3z4jIqBvZU
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (FreeBSD)
 
 iD8DBQFBAjlKiD657aJF7eIRAllXAKCfaLdTjVuMaH2gr8afL2sbxp38cACcCiKH
 DSCeu6bI1DWnbMHT8Pe7JL8=
 =NDhN
 -----END PGP SIGNATURE-----
 
 --Bn2rw/3z4jIqBvZU--
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sat Jul 24 17:15:59 GMT 2004 
State-Changed-Why:  
The maintainer already has a fix in ports/69336, which is pending. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69506 
>Unformatted:
