php.net |  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
39 - 18 = ?
Subscribe to this entry?

 
 [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, 
sizeof(asctimebuf)-1);

Patch courtesy of david robins <dbrobins@uwaterloo.ca>.

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

Paul

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-23 07:25 UTC] sniper@php.net
Does this happen with PHP 4.0.6? Or with latest cvs snapshot
from http://snaps.php.net/ ?

--Jani

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

Paul
 [2001-10-23 09:10 UTC] sniper@php.net
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.

--Jani

 [2001-10-23 09:10 UTC] sniper@php.net
Bogus I said..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 14:01:29 2024 UTC