|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9946 asctime_r has wrong number of arguments
Submitted: 2001-03-22 21:59 UTC Modified: 2001-10-23 09:10 UTC
From: shrub at yahoo dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.0.4pl1 OS: Irix 5.3
Private report: No CVE-ID: None
 [2001-03-22 21:59 UTC] shrub at yahoo dot com
To correct this error:

> main.c: In function `php_message_handler_for_zend':
> main.c:582: too few arguments to function `asctime_r'

change line 582:

/* DBR 20010321 correct for nonstandard 3-arg IRIX 
asctime_r */
datetime_str = php_asctime_r(ta, asctimebuf, 

Patch courtesy of david robins <>.

Config: gcc 2.95.1, irix 5.3 ... configure options were 
--with-mysql and --with-imap



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-23 07:25 UTC]
Does this happen with PHP 4.0.6? Or with latest cvs snapshot
from ?


 [2001-10-23 08:46 UTC] shrub at yahoo dot com
I no longer have access to the SGI and IRIX 5.3 -- we sold 
it. However, looking at line 560 of the PHP 4.0.6 source, 
it appears you haven't changed anything.

 [2001-10-23 09:10 UTC]
It's not that simple..and changing that line is not 
necessarily the right fix. As you can't do any testing anymore, I'm bogusing this report. If someone else using
IRIX has this problem, they can submit a new report.


 [2001-10-23 09:10 UTC]
Bogus I said..

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Apr 03 21:01:23 2020 UTC