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

Files: 
CommentFileSizeAuthor
#1 file.inc_.patch724 bytesshaisachs
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch file.inc__16.patch.
[ View ]

Comments

shaisachs’s picture

Project:Welcoming Websites Wizard» Drupal core
Version:6.x-1.2» 6.16
Component:Code» file system
StatusFileSize
new724 bytes
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch file.inc__16.patch.
[ View ]

As 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.

carlmcdade’s picture

Previous 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.

dddave’s picture

Status:Active» Needs review

Status:Needs review» Needs work

The last submitted patch, file.inc_.patch, failed testing.

carlmcdade’s picture

The 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?

Heine’s picture

Heine’s picture

Status:Needs work» Closed (duplicate)
cballew’s picture

Status:Closed (duplicate)» Needs review

#1: file.inc_.patch queued for re-testing.

Status:Needs review» Needs work

The last submitted patch, file.inc_.patch, failed testing.

Heine’s picture

Status:Needs work» Closed (duplicate)