Date: 10/21/00
- Next message: Andi Gutmans: "Re: [PHP-DEV] patch - adds new setting safe_mode_hide_env_vars"
- Previous message: Stig Venaas: "[PHP-DEV] array_data_compare"
- In reply to: Dominique Stender: "[PHP-DEV] Re: PHP 4.0 Bug #7367 Updated: for loop"
- Next in thread: eschmid+sic <email protected>: "Re: [PHP-DEV] Re: PHP 4.0 Bug #7367 Updated: for loop"
- Reply: eschmid+sic <email protected>: "Re: [PHP-DEV] Re: PHP 4.0 Bug #7367 Updated: for loop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The format of the for loop is:
for (expr; expr; expr)
There is no reason why adding a ';' after the third expression should work.
Andi
At 04:19 PM 10/20/00 +0200, Dominique Stender wrote:
>Yeah, its wrong syntax but ";" has no semantic functionality right before a
>")" or "}" and maybe some more block-ending signs so (IMHO) its a problem of
>the syntax checker being too strict.
>
>best regards,
>
>Dominique Stender
>
>----- Original Message -----
>From: "Bug Database" <php-dev <email protected>>
>To: <d.stender <email protected>>
>Sent: Friday, October 20, 2000 4:09 PM
>Subject: PHP 4.0 Bug #7367 Updated: for loop
>
>
> > ID: 7367
> > Updated by: derick
> > Reported By: d.stender <email protected>
> > Status: Closed
> > Bug Type: Scripting Engine problem
> > Assigned To:
> > Comments:
> >
> > Of course it doesn't. This is not a bug, that syntax is just wrong.
> >
> > Previous Comments:
> > --------------------------------------------------------------------------
>-
> >
> > [2000-10-20 09:58:33] d.stender <email protected>
> > Hello everyone,
> >
> >
> >
> > for ($i = 0; $i < $max; $i++ ) {
> >
> > echo $i
> >
> > }
> >
> >
> >
> > works while
> >
> >
> >
> > for ($i = 0; $i < $max; $i++; ) {
> >
> > echo $i
> >
> > }
> >
> >
> >
> > does not. Note the added ; in the for definition.
> >
> >
> >
> > greetings,
> >
> >
> >
> > Dominique Stender
> >
> >
> >
> > --------------------------------------------------------------------------
>-
> >
> >
> > Full Bug description available at: http://bugs.php.net/?id=7367
> >
>
>
>--
>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>
--- Andi Gutmans <andi <email protected>> http://www.zend.com/-- 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>
- Next message: Andi Gutmans: "Re: [PHP-DEV] patch - adds new setting safe_mode_hide_env_vars"
- Previous message: Stig Venaas: "[PHP-DEV] array_data_compare"
- In reply to: Dominique Stender: "[PHP-DEV] Re: PHP 4.0 Bug #7367 Updated: for loop"
- Next in thread: eschmid+sic <email protected>: "Re: [PHP-DEV] Re: PHP 4.0 Bug #7367 Updated: for loop"
- Reply: eschmid+sic <email protected>: "Re: [PHP-DEV] Re: PHP 4.0 Bug #7367 Updated: for loop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

