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.
There is 4 references to split which needs replacing with preg_split - http://php.net/manual/en/function.split.php
geonames.module:67: $object = array_combine($field_names, split("\t", $line));
geonames.module:90: $lines = split("\n", $file->data);
geonames.module:93: $a = split("\t", $line);
geonames.module:94: $b = split("\.", $a[0]);
Comments
Comment #1
7wonders CreditAttribution: 7wonders commentedexplode is a better option than preg_split I think.
Comment #2
7wonders CreditAttribution: 7wonders commentedSadly I havent figured out creating patches yet but here is the required changes to get the latest d7 version working which includes adding the check for geonameid not equalling 0 and use of explode instead of split.
Comment #3
lyricnz CreditAttribution: lyricnz commentedReplaced split() with explode() in D6 and D7 branches. Thanks.