Re: [phplib] first gotcha i found in php4, phplib From: R.B. Scholtus (regiment <email protected>)
Date: 09/26/00

its a known feature:

http://www.php.net/version4/incompatibilities.php (second list item)

brian

----- Original Message -----
From: Arno A. Karner <karner <email protected>>
To: <phplib <email protected>>
Sent: Sunday, September 24, 2000 5:09 PM
Subject: [phplib] first gotcha i found in php4, phplib

> you can not break from loops from an included file you get the following
> error
> Fatal error: Cannot break/continue 1 levels in comsmt.inc on line 38
>
> example:
> while(1) {
> include "somefile.inc"
> // do loc stuff
> break;
> }
>
> and somefile.inc contains the following types of stuff
> if($Val=='next1') {
> $RecNo++;
> break; }
>
> so tsk tsk on me, it is rather poor programing but when your using an
> interpter and you say include it shopuldnt matter
>
> your milage may vary
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>