PHP 4.0 Bug #3077: ASP tags aren't recognized

From: Date: Sat, 01 Jan 2000 01:36:34 +0000
Subject: PHP 4.0 Bug #3077: ASP tags aren't recognized
Groups: php.dev 
Request: Send a blank email to php-dev+get-14172@lists.php.net to get a copy of this message
From: djm@web.us.uu.net 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.

« previous php.dev (#14172) next »