[php-maint] Bug#349978: php4: Regression bug in ctype_digit() function

Andrew Rolfe andrew at gencon.co.uk
Thu Jan 26 11:58:26 UTC 2006


Package: php4
Version: 4:4.4.2-1
Severity: normal


php4 version 4:4.4.2-1 will return false if ctype_digit() is passed an
empty string. However 4:4.4.0-4 will return true. This causes unexpected
results in existing programs.

Example on 4:4.4.0-4:
<?php var_dump(ctype_digit('')); ?>
returns: bool(true)

Example on 4:4.4.2-1:
<?php var_dump(ctype_digit('')); ?>
Returns: bool(false)

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages php4 depends on:
ii  libapache-mod-php4            4:4.4.2-1  server-side, HTML-embedded scripti
ii  php4-cgi                      4:4.4.2-1  server-side, HTML-embedded scripti
ii  php4-common                   4:4.4.2-1  Common files for packages built fr

php4 recommends no packages.

-- debconf information:
  php4/update_apache_php_ini: true




More information about the pkg-php-maint mailing list