Missing ctype module in PHP
robonoob - March 15, 2006 - 08:47
| Project: | Markdown with SmartyPants |
| Version: | 4.6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | teradome |
| Status: | closed |
Jump to:
Description
Hi,
I am just downloaded and installed the module.
The following message displayed when I entered some stuff in markdown syntax.
modules\marksmarty\markdown.php line:826 : preg_replace_callback() [function.preg-replace-callback]: Unknown modifier '|'I tried it with the following
## aa ##
* Abacus
* answer
* Bubbles
1. bunk
2. bupkis
* BELITTLER
3. burper
* CunningWould you please tell me if I missed something during installation ? Or did I find a bug?
Here is a list of info
- OS: XP
- Drupal version: 4.6.3
- Browser tested: Firefox, IE, Opera
- php: v5.1.1

#1
We had this on our new server - it was down to PHP being built without Character Type Functions. They should be enabled by default post PHP 4.2.0, but if you're using a custom-built PHP set up, or are on a server with a particular/special port (like we are with FreeBSD) then you should check this first.
(Whack
<?phpphpinfo();
?>
into a file and hit it with your browser, then search for 'ctype' - make sure the table is present on the page, and enabled.)
HTH
#2
I'm getting this as well, and I have ctype enabled. Other ideas?
#3
I know better, I should leave details...
Drupal 4.6.7, PHP 5.1.1
#4
Found it. PHP 5.1 changed how that function works. Get a new version of the markdown.php file and replace the one in the module with it and it works.
http://warpspire.com/journal/programming/php-511-markdown-and-wordpress-...
Filed as a bug so the maintainer can update the file, if HEAD isn't already updated. If not, can we get the 4.6.0 package updated with it?
#5
I'll try to get this in over the weekend. Thanks for tracking the issue down!
#6
the 4.6 tag has been updated -- the package should rebuild later today.
#7
Oh and just to note, 4.7 and HEAD have the latest versions as well.
#8