[PHP-DEV] PHP 4.0 Bug #3077: ASP tags aren't recognized From: djm <email protected>
Date: 12/31/99

From: djm <email protected>
Operating system: BSDI BSD/OS 4.0.1
PHP version: 4.0 Beta 3
PHP Bug Type: Scripting Engine problem
Bug description: ASP tags aren't recognized

I'm having a lex-related problem. I compiled PHP4.0b3 as a DSO in apache 1.3.9.
ASP-style tags and the code in them are displayed in the browser instead of being parsed, even though the httpd.conf contains
php_flag asp_tags On
phpinfo() confirms that the Local Value of asp_tags flag is On.
All of the other tags styles are parsed correctly, but stuff like
<% echo ("You may optionally use ASP-style tags"); $variable = "boo"; %>
<%= $variable; # This is a shortcut for "<%echo .." %>
gets sent verbatim to the browser.

I've looked through zend-scanner.l and can't find anything wrong. I tried removing the conditionals on asp_tags there, and changing the <% and %> to <@ and @>
in that file and in my PHP script to see if % was causing trouble, but neither of those approaches worked. I also tried removing optimization when compiling
zend-scanner.c. No effect.
This is weird.

I was able to confirm that I was getting my changed scanner by breaking the rules for identifying the short SGML tags. I found that there's a missing dependency because I had to
rm libzend/libzend.la
in order to force the php module to be rebuilt after the scanner changed.

I'm using PHP compiled as a DSO with apache 1.3.9.
Compiled using flex version 2.5.4 and gcc 2.7.2.1.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>