PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Cannot get image to show

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Images
View previous topic :: View next topic  
Author Message
nemoo



Joined: 28 Feb 2007
Posts: 1

PostPosted: Wed Feb 28, 2007 11:58 am    Post subject: Cannot get image to show Reply with quote

Hello!

I am migrating a web applicaton to php 5.1.6

Somehow the chart display with pear doesnt work, i get this error:

Code:
2007-02-28 10:19:55 <<FATAL ERROR>> error number=2048, text=Assigning the return value of new by reference is deprecated, file=/application/htdocs/lib/pear/Image/Graph.php, line=450


Code:
        $obj = null;

        if (is_array($params)) {
            switch (count($params)) {
            case 1:
line 450:      $obj =& new $class(
                    $params[0]
                );
                break;


the Graph.php version is this
Code:
<?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

/**
 * Image_Graph - Main class for the graph creation.
 *
 * PHP versions 4 and 5
 *
 * LICENSE: This library is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or (at your
 * option) any later version. This library is distributed in the hope that it
 * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
 * General Public License for more details. You should have received a copy of
 * the GNU Lesser General Public License along with this library; if not, write
 * to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 * 02111-1307 USA
 *
 * @category   Images
 * @package    Image_Graph
 * @author     Jesper Veggerby <[email protected]>
 * @copyright  Copyright (C) 2003, 2004 Jesper Veggerby Hansen
 * @license    http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1
 * @version    CVS: $Id: Graph.php,v 1.58 2005/11/27 18:48:05 nosey Exp $
 * @link       http://pear.php.net/package/Image_Graph
 */


has this already been fixed? should i use a different version of pear?

any hint would be highly appreciated.

cheers!
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Mon Mar 12, 2007 12:46 am    Post subject: Reply with quote

Turn E_STRICT error reporting off and the message will disappear.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Images All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement