php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60342 reentrancy.c error: too few arguments to function
Submitted: 2011-11-20 00:59 UTC Modified: 2018-06-24 04:22 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: nam dot nh at nd24 dot net Assigned: cmb (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 5.3SVN-2011-11-19 (snap) OS: OpenIndiana 151a
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
47 - 35 = ?
Subscribe to this entry?

 
 [2011-11-20 00:59 UTC] nam dot nh at nd24 dot net
Description:
------------
reentrancy.c error: too few arguments to function 'ctime_r' and 'asctime_r'

This error affected on both PHP 5.3.8 stable version and PHP 5.3 snapshot version.




Test script:
---------------
# ./configure --prefix=/usr/php --enable-fastcgi --enable-fmp --with-mcrypt --with-zlib --enable-mbstring --disable-pdo --with-curl-disable-debug --enable-pic disable-rpatch --enable-inline-optimization --with-bz2 --with-xml --enable-sockets --enable-mbregex --with-mhash --enable-xslt --enable-memcache --enable-zip --with-pcre


Expected result:
----------------
successful

Actual result:
--------------
# make
...
/bin/sh /tmp/php5.3-201111191730/libtool --silent --preserve-dup-deps --mode=compile gcc  -Imain/ -I/tmp/php5.3-201111191730/main/ -DPHP_ATOM_INC -I/tmp/php5.3-201111191730/include -I/tmp/php5.3-201111191730/main -I/tmp/php5.3-201111191730 -I/tmp/php5.3-201111191730/ext/date/lib -I/tmp/php5.3-201111191730/ext/ereg/regex -I/usr/include/libxml2 -I/tmp/php5.3-201111191730/ext/mbstring/oniguruma -I/tmp/php5.3-201111191730/ext/mbstring/libmbfl -I/tmp/php5.3-201111191730/ext/mbstring/libmbfl/mbfl -I/tmp/php5.3-201111191730/TSRM -I/tmp/php5.3-201111191730/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /tmp/php5.3-201111191730/main/strlcat.c -o main/strlcat.lo
/bin/sh /tmp/php5.3-201111191730/libtool --silent --preserve-dup-deps --mode=compile gcc  -Imain/ -I/tmp/php5.3-201111191730/main/ -DPHP_ATOM_INC -I/tmp/php5.3-201111191730/include -I/tmp/php5.3-201111191730/main -I/tmp/php5.3-201111191730 -I/tmp/php5.3-201111191730/ext/date/lib -I/tmp/php5.3-201111191730/ext/ereg/regex -I/usr/include/libxml2 -I/tmp/php5.3-201111191730/ext/mbstring/oniguruma -I/tmp/php5.3-201111191730/ext/mbstring/libmbfl -I/tmp/php5.3-201111191730/ext/mbstring/libmbfl/mbfl -I/tmp/php5.3-201111191730/TSRM -I/tmp/php5.3-201111191730/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /tmp/php5.3-201111191730/main/mergesort.c -o main/mergesort.lo
/bin/sh /tmp/php5.3-201111191730/libtool --silent --preserve-dup-deps --mode=compile gcc  -Imain/ -I/tmp/php5.3-201111191730/main/ -DPHP_ATOM_INC -I/tmp/php5.3-201111191730/include -I/tmp/php5.3-201111191730/main -I/tmp/php5.3-201111191730 -I/tmp/php5.3-201111191730/ext/date/lib -I/tmp/php5.3-201111191730/ext/ereg/regex -I/usr/include/libxml2 -I/tmp/php5.3-201111191730/ext/mbstring/oniguruma -I/tmp/php5.3-201111191730/ext/mbstring/libmbfl -I/tmp/php5.3-201111191730/ext/mbstring/libmbfl/mbfl -I/tmp/php5.3-201111191730/TSRM -I/tmp/php5.3-201111191730/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /tmp/php5.3-201111191730/main/reentrancy.c -o main/reentrancy.lo
/tmp/php5.3-201111191730/main/reentrancy.c: In function 'php_ctime_r':
/tmp/php5.3-201111191730/main/reentrancy.c:63:2: error: too few arguments to function 'ctime_r'
/usr/include/time.h:320:14: note: declared here
/tmp/php5.3-201111191730/main/reentrancy.c: In function 'php_asctime_r':
/tmp/php5.3-201111191730/main/reentrancy.c:70:2: error: too few arguments to function 'asctime_r'
/usr/include/time.h:319:14: note: declared here
*** Error code 1
make: Fatal error: Command failed for target `main/reentrancy.lo'


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-20 07:35 UTC] nam dot nh at nd24 dot net
PHP 5.4 snap doesn't affect, runs smoothly.
 [2018-03-09 11:56 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2018-03-09 11:56 UTC] cmb@php.net
> PHP 5.4 snap doesn't affect, runs smoothly.

Presently, the question is rather whether PHP 7.1 and up
compile.
 [2018-06-24 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 22:01:33 2024 UTC