Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jul 2004 18:30:00 GMT
From:      Martin Waedt <martin@waedt.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:    =?iso-8859-1?q?www/69500=3A_phpMyAdmin-2=2E5=2E7=2E1_doesn=B4t?= =?iso-8859-1?q?_work_with_php4-4=2E3=2E8=5F1__apache-2=2E0=2E50?=
Message-ID:  <200407231830.i6NIU0hP078897@www.freebsd.org>
Resent-Message-ID: <200407231830.i6NIUONA044966@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         69500
>Category:       www
>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-www
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 23 18:30:24 GMT 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407231830.i6NIU0hP078897>