PHP 5.3 /SC 5/ MYSQL 5.5 how to : error handling for depreceated warnings

Hello,
I have to use PHP 5.3 on a Windows 2008 R2 System with MYSQL 5.5 AND Apache. (sorry : I removed IIS :slight_smile: …
Because some php-commands are depreceated in PHP 5.3 I get a lot of warnings when starting a grid.
(See attachment).

Because of the own error handling of SC the value setting in PHP.ini is ignored.
So a display_errors = Off in PHP.INI will be ignored because SC 5 overwrites this setting using it’s own error handling.

Is there any other way to suppress these warnings. These warnings will confuse my customer and are not necessary.

Best regards
Uwe Pfeiffer

error.doc (181 KB)

Re: PHP 5.3 /SC 5/ MYSQL 5.5 how to : error handling for depreceated warnings

if you deploy your apps with sc 5 (php5.2) , try to use php 5.2 too in your server’s client computer.

Re: PHP 5.3 /SC 5/ MYSQL 5.5 how to : error handling for depreceated warnings

That’s not possible … see my post…

Regards
Uwe

Re: PHP 5.3 /SC 5/ MYSQL 5.5 how to : error handling for depreceated warnings

Pfeiffer,

Have you changed the other setting in php.ini to become the following?


error_reporting = E_ALL & ~E_DEPRECATED
display_startup_errors = Off

Does it work?

Sincerely,
Masino Sinaga

Re: PHP 5.3 /SC 5/ MYSQL 5.5 how to : error handling for depreceated warnings

Hello,

No … it will not work because SC V5 OVERWRITES ALL INI-Setting itself !!
So ini-values in php.ini are IGNORED.

That’s the problem…

Best regards
Uwe

Re: PHP 5.3 /SC 5/ MYSQL 5.5 how to : error handling for depreceated warnings

BTW,
did you try sc_warning=“off”;

Re: PHP 5.3 /SC 5/ MYSQL 5.5 how to : error handling for depreceated warnings

try to install zend server (Apache, Zend guard, Optimizer, php) and use that for your web server. When i developed container in php 5.3 i got undefined index,
Yes Everything works fine when i use zend (www.zend.com)

Re: PHP 5.3 /SC 5/ MYSQL 5.5 how to : error handling for depreceated warnings

Hello,
this warnings apeared under Apache/Zend/PHP 5.3.

I gave up and returned to PHP 5.2 and an older version of mysql.

Thanks for your answers…

Best regards
Uwe Pfeiffer