Actually it's the other way arround. /Ox turns on all optimizations.
Without it the file compiles fine.
- Frank
>
> /Ox turns off optimizations. Basically _scan has overrun the
optimization
> buffer allocated at compile time. I'm not aware of any way to increase
> it, and I don't believe turning off optimizations is a benefit for PHP
on
> Windows.
>
> It might be time to re-think how this function works.
>
>
> On Thu, 25 May 2006, Derick Rethans wrote:
>
> > On Wed, 24 May 2006, Frank M. Kromann wrote:
> >
> >> Hello All,
> >>
> >> My hard disk crashed over the weekend and after reinstalling
everything on
> >> a new drive I'm getting the folowing error:
> >>
> >> c:\php\php5_2\ext\date\lib\parse_date.re(759) : fatal error C1053:
'_scan'
> >> : function too large
> >> NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
> >> Stop.
> >
> > Too large? :) I know this function *is* pretty big because it is
> > generated from re2c but it is funny that this MS compiler doesn't
like
> > it.
> >
> >> I'm using Visual Studio .NET 2003 and that's the same version I have
been
> >> using for a while without problems.
> >>
> >> A quick fix is to remove /Ox from CFLAGS in the Makefile when
compiling