[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: testing php5 for Squeeze LTS



On Fri, 11 Sep 2015 16:02:27 +0200 (CEST)
Thorsten Alteholz <debian@alteholz.de> wrote:

> On Thu, 10 Sep 2015, Andrey Tataranovich wrote:
> > After installation of 5.3.3.1-7+squeeze27 an error raised on
> > magento installation:
> >
> > Warning: imagecreatefrompng(): bad type specifier while parsing
> > parameters
> 
> this is strange, I get:
> 
> $ php5 -v
> PHP 5.3.3-7+squeeze27 with Suhosin-Patch (cli) (built: Aug 29 2015 
> 13:18:55)
> Copyright (c) 1997-2009 The PHP Group
> Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
>      with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins

I installed php 5.3.3-7+squeeze27 on test host:

admin@php53check:~$ php -v
PHP 5.3.3-7+squeeze27 with Suhosin-Patch (cli) (built: Sep  7 2015
18:55:02) Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH


> GmbH $ php test_load
> show warning
> PHP Notice:  Undefined variable: i in /root/php5/test_load on line 6
> Notice: Undefined variable: i in /root/php5/test_load on line 6
> test start
> test end
> 
> With this script:
>   <?php
>    error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
>    print "show warning\n";
>    print $i;
> 
>    print "test start\n";
>    $imgPng = imagecreatefrompng("s_info.png");
>    print "test end\n";
>   ?>
> 
> So there is no warning and everything seems to be fine!?
> 
> Can you please run this script on your computer as well?
> 
>    Thorsten
> 

admin@php53check:~$ file test.png 
test.png: PNG image data, 157 x 160, 8-bit/color RGB, non-interlaced

admin@php53check:~$ php test.php 
show warning
PHP Notice:  Undefined variable: i in /home/admin/test.php on line 4
test start
test end


Seems everything fine with function when called from test. I will check
magento application more closely.

-- 
WBR, Andrey Tataranovich


Reply to: