Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Function ereg_replace() is deprecated
https://www.tinywebgallery.com/forum/viewtopic.php?f=5&t=2144
Page 1 of 1

Author:  Hugo van Wijlen [ 16. Sep 2009, 15:54 ]
Post subject:  Function ereg_replace() is deprecated

Good day,

I'm getting many errors in my debug file like below:
E:\webs\twg\inc\filefunctions.inc.php, line 1885: Function ereg_replace() is deprecated

I'm using PHP 5.3.0. and TWG 1.7.8

Do I have to change something or is this a bug?

Geetings,

Hugo

Author:  TinyWebGallery [ 16. Sep 2009, 16:33 ]
Post subject: 

no:

about ereg_replace(). the function it deprecated and will not remain in php6. as long as you are using php5, ereg_replace (and similar functions) should work fine. deprecated does not mean, that the particular function does not work, but that it probably will not be supported in future version of php6. to solve your problem it should be enough to change the reporting level as the messages you get are only warnings.

when php 6 is coming I will update TWG. But when this is coming a lot of php scripts will need updates ;). But php is not even alpha ...

But I can add to the debug function not the print this warning ...

- Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/