[Pkg-mediawiki-devel] Bug#579080: php-geshi: Can't render Scheme code

Drew Hess dhess-debian at bothan.net
Sun Apr 25 04:52:32 UTC 2010


Package: php-geshi
Version: 1.0.8.4-1
Severity: normal

php-geshi can't render Scheme code. It appears to have something to do
with GeSHi's disallowed characters in keywords (Scheme keywords can
include pretty much any character, including '?', '/' and '='), but my
PHP skills aren't sufficient for me to figure out exactly what's
wrong.

Here's the warning I'm getting:

Apr 18 10:11:05 drewhess apache2: PHP Warning:  preg_replace_callback(): Unknown modifier 'c' in /usr/share/php-geshi/geshi.php on line 3300

Removing all of the Scheme keywords in scheme.php that include "odd"
characters such as '?', '/' and '=' fixes the problem.

If you have a MediaWiki install with the GeSHi extension installed,
you can easily test this yourself with the following markup:

<source lang="scheme">
(define x 3)
</source>

MW should render just a blank page. Change "scheme" in the markup to
just about anything else (including "lisp") and you'll see the
highlighted source code in the page.

I've also filed a bug upstream here:
http://sourceforge.net/tracker/?func=detail&aid=2991914&group_id=114997&atid=670231

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php-geshi depends on:
ii  php5                          5.3.2-1    server-side, HTML-embedded scripti
ii  php5-cli                      5.3.2-1    command-line interpreter for the p

php-geshi recommends no packages.

php-geshi suggests no packages.

-- no debconf information





More information about the Pkg-mediawiki-devel mailing list