K
K
Kirill Sidorov2011-10-07 07:07:40
PHP
Kirill Sidorov, 2011-10-07 07:07:40

Problems after updating PHP to 5.3.8?

Yesterday, the devil pulled the installation of the curl extension for PHP, which updated PHP to 5.3.8, as a result of which problems began on some sites. Basically, these are errors of the E_DEPRECATED type, which in principle does not matter. But much more serious is the fact that GD refused to eat JPEG. returns

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: 'somepic.jpg' is not a valid JPEG file
.
GD is built with JPEG support:
GD Version =&gt; 2.0<br/>
FreeType Support =&gt; 1<br/>
FreeType Linkage =&gt; with freetype<br/>
T1Lib Support =&gt; 1<br/>
GIF Read Support =&gt; 1<br/>
GIF Create Support =&gt; 1<br/>
JPEG Support =&gt; 1<br/>
PNG Support =&gt; 1<br/>
WBMP Support =&gt; 1<br/>
XPM Support =&gt; <br/>
XBM Support =&gt; <br/>
JIS-mapped Japanese Font Support =&gt;

On the Internet, they write a lot that the clumsy format and so on, especially smart ones advise to install something, but before the update it ate everything, there were no problems and we will not force ordinary users to take care of the JPEG format. Has anyone experienced this? How to treat?
In passing a question about E_DEPRECATED. How to disable error output? I already set error_reporting to 0 in php.ini, it still climbs.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Beresnev, 2011-10-07
@sectus

Maybe this will help: http://php.net/manual/en/image.configuration.php ?
To see the current PHP settings use phpinfo();

A
Anatoly, 2011-10-07
@taliban

“I already set error_reporting to 0 in php.ini, it still climbs.”
This can be programmatically enabled, look for ini_set in the project or in .htaccess php_value, php_flag. Perhaps somewhere the inclusion of errors was messed up.

R
RUgaleFF, 2011-10-07
@RUgaleFF

error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
Perhaps it does not work in php.ini due to the fact that this directive is explicitly set in the script - search by content in files will help here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question