Bug #55014 [Opn->Csd]: Error Compiling: too many arguments to function `ctime_r'
| From: | iliaa@php.net | Date: | Mon, 11 Jul 2011 17:01:28 +0000 |
| Subject: | Bug #55014 [Opn->Csd]: Error Compiling: too many arguments to function `ctime_r' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-161803@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55014&edit=1
ID: 55014
Updated by: iliaa@php.net
Reported by: rosnerb at htw-berlin dot de
Summary: Error Compiling: too many arguments to function
`ctime_r'
-Status: Open
+Status: Closed
Type: Bug
Package: Compile Failure
Operating System: Solaris 10
PHP Version: 5.3.6
-Assigned To:
+Assigned To: iliaa
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2011-07-11 13:01:21] iliaa@php.net
Automatic comment from SVN on behalf of iliaa
Revision: http://svn.php.net/viewvc/?view=revision&revision=313144
Log: Fixed bug #55014 (Compile failure due to improper use of ctime_r()).
------------------------------------------------------------------------
[2011-06-09 14:01:17] rosnerb at htw-berlin dot de
Description:
------------
/prog/src/php-5.3.6/main/reentrancy.c: In function `php_ctime_r':
/prog/src/php-5.3.6/main/reentrancy.c:63: error: too many arguments to function `ctime_r'
/prog/src/php-5.3.6/main/reentrancy.c: In function `php_asctime_r':
/prog/src/php-5.3.6/main/reentrancy.c:70: error: too many arguments to function `asctime_r'
gmake: *** [main/reentrancy.lo] Error 1
Using gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) on SunOS 5.10 i386 with CFLAGS=-O3 -m64
Following configure options were used, also --disable-all did produce the error. Configure went
through without problems.
./configure --prefix=/prog/apps/php-5.3.6 \
--with-config-file-path=/prog/etc/php \
--sysconfdir=/prog/etc/php \
--with-apxs2=/prog/apps/apache-2.2.18/bin/apxs \
--with-ldap=/prog/apps/openldap-2.4.23 \
--with-openssl=/prog/apps/openssl-1.0.0d \
--with-mysql=/prog/apps/mysql-5.5.12 \
--with-mysqli \
--with-pear \
--with-gettext=/prog/apps/gettext \
--with-jpeg-dir=/prog/apps/jpeg-8c \
--with-png-dir=/prog/apps/libpng-1.5.2 \
--with-zlib=/prog/apps/zlib \
--with-zlib-dir=/prog/apps/zlib \
--with-libxml-dir=/prog/apps/libxml2 \
--with-iconv=/prog/apps/libiconv \
--with-gd=/prog/apps/gd \
--with-mcrypt=/prog/apps/libmcrypt \
--with-imap=/prog/apps/imap-2007e \
--with-imap-ssl=/prog/apps/openssl-1.0.0a \
--with-curl=/prog/apps/curl-7.21.6 \
--with-curlwrappers \
--with-pgsql \
--with-pgsql=/usr/postgres/8.3 \
--enable-ftp \
--with-regex=php \
--enable-zip \
--enable-mbstring \
--enable-ctype \
--enable-sysvshm \
--enable-calendar \
--enable-exif \
--enable-gd-native-ttf \
--enable-sockets \
--enable-safe-mode
Removing third argument '26' of ctime_r() and asctime_r() in line 63 and 70 fixes this
error.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55014&edit=1