Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get the following error message during installation of Drupal (drupal-6.13) on WAMP.
"Deprecated: Function ereg() is deprecated in C:\wamp\www\includes\file.inc on line 895".
Please help!
Best regards,
Ubota Otragane
Comment | File | Size | Author |
---|---|---|---|
#1 | file.inc_.patch | 724 bytes | shaisachs |
Comments
Comment #1
shaisachs CreditAttribution: shaisachs commentedAs far as I can tell this is a Drupal core issue, due to an ereg() call in file_scan_directory. The function was deprecated in PHP 5.3, which I guess is the version you have in WAMP.
This patch should take care of it.
Comment #2
carlmcdade CreditAttribution: carlmcdade commentedPrevious patches have been ignored or lost. The code does work. The new code will even pass the unit test as ereg() would return a 0 or a 1 boolean. preg_match() will do the same by returning the number of hits which would be 0 or 1. Thus matching the requirements of the unit test.
Comment #3
dddave CreditAttribution: dddave commentedComment #5
carlmcdade CreditAttribution: carlmcdade commentedThe patch is failing against the version. But as far as I can see everything is correct and works using patch. But then I am using Windows. Perhaps it is a *nix formatting error. Can someone else try re-rolling this with Linux?
Comment #6
Heine CreditAttribution: Heine commentedDuplicate of #360605: PHP 5.3 Compatibility.
Please see
- #360605-24: PHP 5.3 Compatibility
- #360605-36: PHP 5.3 Compatibility
and below.
Comment #7
Heine CreditAttribution: Heine commentedComment #8
cballew CreditAttribution: cballew commented#1: file.inc_.patch queued for re-testing.
Comment #10
Heine CreditAttribution: Heine commented