Req #73486 [Com]: Deprecated functions related
Edit report at https://bugs.php.net/bug.php?id=73486&edit=1
ID: 73486
Comment by: thummarmohit77 at gmail dot com
Reported by: thummarmohit77 at gmail dot com
Summary: Deprecated functions related
Status: Not a bug
Type: Feature/Change Request
Package: *General Issues
PHP Version: 5.6.27
Block user comment: N
Private report: N
New Comment:
I am not checking about similar to ereg or split but just creating functions with same name (if not
exists) and is still gives deprecated error.
Previous Comments:
------------------------------------------------------------------------
[2016-11-10 03:30:30] requinix@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
ereg and preg_match do not work the same way. split and preg_split do not work the same way.
------------------------------------------------------------------------
[2016-11-10 03:28:35] thummarmohit77 at gmail dot com
Description:
------------
I have a problem and trying to resolve using a code (located in Test script section). I have a big
project in PHP in lower version and my system use newer version of php. The following function is
Deprecated in newer version:
ereg()
split()
And my solution is in test script section but it is not working. I think it should work.
Test script:
---------------
if(!function_exists("ereg")){
function ereg($s1, $s2){
return preg_match($s1, $s2);
}
}
if(!function_exists("split")){
function split($s1, $s2){
return preg_split($s1, $s2);
}
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73486&edit=1
Thread (4 messages)