Re: [PHP-DEV] Re: Bug #2033 Updated: serialize() produces: FATAL: emalloc(): Unable to allocate 4160742841l bytes From: Thies C. Arntzen (thies <email protected>)
Date: 08/31/99

On Tue, 31 Aug 1999 elfchief <email protected> wrote:

> > ID: 2033
> > Updated by: thies
> > Reported By: elfchief <email protected>
> > Status: Open
> > Bug Type: Misbehaving function
> > Assigned To:
> > Comments:
> >
> > unifixed - configure needs to find that out!
>
> Err... why? All the 'fix' for this does is replace sprintf with
> _php3_sprintf ... and the purpose of _php3_sprintf is to centralize
> the special code required to handle sprintf under stupid OSen. Broken
> sprintf already -is- autoconfigured and _php3_sprintf makes the correct
> adjustments when needed.
>
> Or am I missing something?
>
> -WW

yes, as sprintf is used all over the code it might be cheaper to

#if BROKEN_SPRINTF
  #define sprintf _php3_sprintf
#endif

(like apache does it)

in php.h

tc
 
>
> --
> 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>
>
>

Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany

-- 
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>