[php-maint] Bug#448672: php5: Improper code interpretation without compound statement
inet
mikemol at gmail.com
Tue Oct 30 23:44:37 UTC 2007
Package: php5
Version: 5.2.3-1+lenny1
Severity: normal
The following code misbehaves:
<?
if ( true )
echo "This should be displayed.<br>";
if ( false )
echo "This won't be displayed.<br>";
if( false )
{
echo "This also won't be displayed.<br>";
}
if( false )
{
?>This also won't be displayed.<br><?
}
if( false )
?>This shouldn't be displayed, but is, and there are no warnings to suggest that it is improper.<br><?
?>
Apparently, the ?> directive is improperly handled.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.16-2-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages php5 depends on:
ii libapache2-mod-php5 5.2.3-1+lenny1 server-side, HTML-embedded scripti
ii php5-cgi 5.2.3-1+lenny1 server-side, HTML-embedded scripti
ii php5-common 5.2.3-1+lenny1 Common files for packages built fr
php5 recommends no packages.
-- no debconf information
More information about the pkg-php-maint
mailing list