vc++ compiler understands nested blocks just fine. The problem is that err is used further down in the file, and err is out of scope at that point.
-Jason On Sat, 2002-07-13 at 04:01, Jani Taskinen wrote: > On Sat, 13 Jul 2002, Sebastian Bergmann wrote: > > >Jani Taskinen wrote: > >> What's the error you get? > > > > c:\home\php\php4\ext\standard\fsock.c(244): error C2065: > > 'err': undeclared identifier > > So that stupid compiler doesn't understand this: > > . > . > > { > int err; > . > . > } > > ??? > > This stuff works with gcc and is used also elsewhere.. > Why doesn't it work there? :( > > --Jani > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php