[prev in list] [next in list] [prev in thread] [next in thread] 

List:       phplib-dev
Subject:    [phplib-dev] Bugs?
From:       Tero Tilus <mutikainen () iki ! fi>
Date:       2001-05-31 18:11:52
[Download RAW message or body]

I don't know if these issues are known.  Both deal with templates.

1) PRINT INCONSISTENCY

Template::pparse() doesn't push output thru finish(), so value of $unknowns
has got no effect when using

         $t->pparse('x', 'y');

instead of

         $t->parse('x', 'y');
         $t->p('x');

2) WEIRD BEHAVIOR WITH OPERA 5.11

When printing output with Template::p(), $unknowns set to 'remove' page is
processed correctly, result is correct, but Opera keeps waiting something
from server forever.  When you press "stop" page displays correctly, but 
until then Opera keeps waiting for data and doesn't render page.  When you 
change

       case "remove":
         $str = preg_replace('/{[^ \t\r\n}]+}/', "", $str);
       break;

in Template::finish() to

       case "remove":
         $str = preg_replace('/{[^ \t\r\n}]+}/', "&nbsp;", $str);
       break;

everything magically works.

Weird waiting occurs at least when second parameter of previous
preg_replace() is empty or contains only spaces, tabs, carrier returns or
linefeeds.  Haven't had time to test more.  Version of template.inc is 1.5

ps. IE 5.5 works (in this case) just as one would expect.  Only Opera waits.


-- 
Tero Tilus /  Taitoniekantie 9 E 815 /  40740 Jyväskylä /  FINLAND
TEL +35814607804 / GSM +358503635235 / WEB www.st.jyu.fi/~terotil/


---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-dev-unsubscribe@lists.netuse.de
For additional commands, e-mail: phplib-dev-help@lists.netuse.de

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic