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
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
*   Cunning

Would 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

leafish_paul - March 15, 2006 - 12:52
Title:a bug?» Missing ctype module in PHP
Category:bug report» support request

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

<?php
phpinfo
();
?>

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

codepoet - April 15, 2006 - 13:39

I'm getting this as well, and I have ctype enabled. Other ideas?

#3

codepoet - April 15, 2006 - 13:44

I know better, I should leave details...

Drupal 4.6.7, PHP 5.1.1

#4

codepoet - April 15, 2006 - 13:54
Category:support request» bug report

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

teradome - July 14, 2006 - 14:08
Assigned to:Anonymous» teradome

I'll try to get this in over the weekend. Thanks for tracking the issue down!

#6

teradome - July 15, 2006 - 19:59
Status:active» fixed

the 4.6 tag has been updated -- the package should rebuild later today.

#7

teradome - July 15, 2006 - 20:00

Oh and just to note, 4.7 and HEAD have the latest versions as well.

#8

Anonymous - July 29, 2006 - 20:15
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.