Mambo forums
Forum Home Register Forum Rules FAQ Search Today's Posts Mark Forums Read

Go Back   Mambo CMS Forum > Mambo Developer Forum > Mambo Development > Mambo 4.6.x
 

Running Mambo with PHP 5.3

This is a discussion on Running Mambo with PHP 5.3 within the Mambo 4.6.x forums for Mambo.

Reply
 
Thread Tools
Old 09-11-2009, 11:36 AM   #1
andphe
Mambo Guru
MSC
Programming
Forum Admin
Super Moderators
 
andphe's Avatar
 
Join Date: Oct 2006
Location: Colombia
Posts: 4,002
Running Mambo with PHP 5.3

Hi there, since the release the PHP 5.3, users with this release have been experiencing issues with Mambo, we are working on fix this issues, this post is a guide of how to run Mambo 4.6.5 over PHP 5.3 while the next bug fixing minor release is out ( for those experienced and edege users the nightly build is also available )

error reporting

set your error reporting at php.ini to:

Code:
E_ALL & ~E_STRICT & ~E_DEPRECATED
file includes/database.php

around the line 790, change it from:

PHP Code:
class mosDBTable extends mosDBAbstractRow {
    
/** @var mosDatabase Database connector */
    
var $_db null;

    
/**
     *    @return bool True if DB query failed.  Sets the error message
     */
    
function queryTestFailure () { 
to:

PHP Code:
class mosDBTable extends mosDBAbstractRow {
    
/** @var mosDatabase Database connector */
    
var $_db null;

    function 
mosDBTable ($table=''$keyname='id'$db='') {
        
$this->mosDBAbstractRow($table$keyname$db);
    }

    
/**
     *    @return bool True if DB query failed.  Sets the error message
     */
    
function queryTestFailure () { 
file includes/Cache/Lite/Function.php

around the line 72, change it from :

PHP Code:
function call()
{
    
$arguments func_get_args(); 
to:

PHP Code:
function call()
{
    
$arguments func_get_args();
    
$numargs func_num_args();

    for(
$i=1$i $numargs$i++){
        
$arguments[$i] = &$arguments[$i];
    } 
there would be more issues, so please help us testing Mambo on PHP 5.3, this post will be updated as soon as new issues appear.

note:
If you find a new issue please report it here http://mambo-developer.org/tracker/i...ls&task_id=461
__________________
Andrés Felipe Vargas
http://www.mambo-es.net, únete a la comunidad en español de Mambo
http://tinyurl.com/mambo-webchat Mambo Web Chat

Last edited by andphe; 09-11-2009 at 11:39 AM.
andphe is offline   Reply With Quote
Reply

Bookmarks

Tags
php5.3

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 01:18 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Mambo Foundation, Inc © 2000 - 2008 All rights reserved. Mambo is Free Software released under the GNU/GPL License.

Managed Servers by DedicatedNOW