Package: php5 Version: 5.4.0 Severity: important I'm seeing the following on a system when upgrading to 5.4.0-2:
Setting up php5-gd (5.4.0-2) ... /var/lib/dpkg/info/php5-gd.postinst: line 21: local: can only be used in a function dpkg: error processing php5-gd (--configure): subprocess installed post-installation script returned error exit status 1 Setting up php5-ldap (5.4.0-2) ... /var/lib/dpkg/info/php5-ldap.postinst: line 21: local: can only be used in a function dpkg: error processing php5-ldap (--configure): subprocess installed post-installation script returned error exit status 1 Setting up php5-imap (5.4.0-2) ... /var/lib/dpkg/info/php5-imap.postinst: line 21: local: can only be used in a function dpkg: error processing php5-imap (--configure): subprocess installed post-installation script returned error exit status 1 I assumed this was a bash-ism that had crept into the scripts being run on a system with /bin/sh linked to dash, but actually, this system has /bin/sh linked to bash, so I guess this ends up being a dash-ism. I simply edited the scripts to remove the 'local' modifiers and they seem to have run fine, but I could easily see this being confusing to other users. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: i386 (x86_64) Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

