Closed (fixed)
Project:
Pathauto
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2007 at 17:05 UTC
Updated:
16 Sep 2007 at 12:21 UTC
Just enabled pathauto which I use with a minimalist PHP install and found out that it won't function without ctype enabled.
We have --disable-ctype in our PHP configuration script run.
Could you please use some of the PHP core functions instead if possible? I don't believe that Drupal itself has the ctype requirements.
Comments
Comment #1
gregglesPerhaps you could provide a patch to do this? If so I will be happy to commit it.
It works fine for so many people, so for my own time this is a lower priority than many of the bugs that affect pathauto.
Comment #2
gregglesInstead of the ctype_alnum check can you try using
and see if that works?
Comment #3
gregglesI used a slightly modified version which will support international characters well
if (preg_match('/^(\pL|\pN)+$/D', $separator)) {Comment #4
gregglesI reverted this because ctype_alnum is more reliable than other solutions. If someone who really cares about this can please come forward with a patch that has been tested on a large number of systems, I'd be happy to commit.
It seems that common systems with differences are:
Fedora Core
*BSD
So any testing should include those.
Comment #5
gregglesHopefully fixed again - see http://drupal.org/node/167787 again.
Comment #6
(not verified) commented