check for strptime()

php.internals

Ard Biesheuvel

21 years ago
Hi, Trying to fix an issue with the interbase extension. Does anyone know if the build system on UNIX ever contained a test for the availability of strptime() ? The Interbase module uses the HAVE_STRPTIME macro, but it never gets #defined. Would anyone object if I add such a test? Regards, Ard

Derick Rethans

21 years ago
On Mon, 4 Jul 2005, Ard Biesheuvel wrote:
> Trying to fix an issue with the interbase extension. > > Does anyone know if the build system on UNIX ever contained a test for the > availability of strptime() ? The Interbase module uses the HAVE_STRPTIME > macro, but it never gets #defined. Would anyone object if I add such a test?
I would suggest not to use this function, as it's highly system dependent. It might be much wiser to use the new date/time parsing routines instead. Derick
-- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

Ard Biesheuvel

21 years ago
Ard Biesheuvel wrote:
> Does anyone know if the build system on UNIX ever contained a test for > the availability of strptime() ? The Interbase module uses the > HAVE_STRPTIME macro, but it never gets #defined. Would anyone object if > I add such a test? >
Replying to myself: apparently it *does* contain such a test, so I'll have to check out the system that's causing trouble (Jochem, are you reading this?) Please disregard for now.
-- Ard