[php-maint] Bug#464074: php5-tidy: Memory limited exceeded always with tidy_parse_string()

Markus Fischer markus at fischer.name
Tue Feb 5 00:18:38 UTC 2008


Package: php5-tidy
Version: 5.2.4-2+b1
Severity: normal


I initially reported this as #463872 but it was suggested this may be a
php5-tidy bug.

When used within PHP, the allowed memory size from PHP is exceeded every time:

$ /usr/bin/php -r 'tidy_parse_string("");'

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 141264868 bytes) in Command line code on line 1

Call Stack:
    0.0153      50764   1. {main}() Command line code:0
    0.0304      50764   2. tidy_parse_string() Command line code:1


When using the libtidy-0.99-0 binary from the 20051018-1 package, it works.

However, when I compile a clean 5.2.4 or 5.2.5 release from php.net, it also
works with the 20080116cvs-2 version of libtidy-0.99-0. It seems somewhere
something went wrong during the php5-tidy compilation phase (or so).

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-vserver-k7 (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 php5-tidy depends on:
ii  libapache2-mod-php5 [phpap 5.2.4-2+b1    server-side, HTML-embedded scripti
ii  libc6                      2.7-6         GNU C Library: Shared libraries
ii  libtidy-0.99-0             20080116cvs-2 HTML syntax checker and reformatte
ii  php5-cli [phpapi-20060613+ 5.2.4-2+b1    command-line interpreter for the p
ii  php5-common                5.2.4-2+b1    Common files for packages built fr

php5-tidy recommends no packages.

-- no debconf information





More information about the pkg-php-maint mailing list