php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32795 Compile errors in:pdo_stmt.c, php_pdo_int.h
Submitted: 2005-04-21 23:42 UTC Modified: 2005-04-22 04:56 UTC
From: JClawson at tamu dot edu Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5CVS-2005-04-21 (dev) OS: * (with GCC 4 only)
Private report: No CVE-ID: None
 [2005-04-21 23:42 UTC] JClawson at tamu dot edu
Description:
------------
/home/upgrade-tmp/php5-200504212030/ext/pdo/pdo_stmt.c: In function 'do_fetch':
/home/upgrade-tmp/php5-200504212030/ext/pdo/pdo_stmt.c:876: warning: pointer targets in passing ar
gument 3 of 'ce->unserialize' differ in signedness
/home/upgrade-tmp/php5-200504212030/ext/pdo/pdo_stmt.c: At top level:
/home/upgrade-tmp/php5-200504212030/ext/pdo/pdo_stmt.c:1749: error: static declaration of 'pdo_dbs
tmt_object_handlers' follows non-static declaration
/home/upgrade-tmp/php5-200504212030/ext/pdo/php_pdo_int.h:41: error: previous declaration of 'pdo_
dbstmt_object_handlers' was here
/home/upgrade-tmp/php5-200504212030/ext/pdo/pdo_stmt.c:2115: error: static declaration of 'pdo_row
_object_handlers' follows non-static declaration
/home/upgrade-tmp/php5-200504212030/ext/pdo/php_pdo_int.h:49: error: previous declaration of 'pdo_
row_object_handlers' was here
make: *** [ext/pdo/pdo_stmt.lo] Error 1



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-21 23:44 UTC] JClawson at tamu dot edu
gcc (GCC) 4.0.0 20050412 (Red Hat 4.0.0-0.42)
 [2005-04-22 00:11 UTC] sniper@php.net
Works fine with GCC 3. (Don't you think it's pretty stupid to use a compiler that hasn't been really tested enough..?)

 [2005-04-22 03:56 UTC] JClawson at tamu dot edu
No, I don't think its "stupid."  GCC 4 is the latest stable release... its not beta or dev.

If you write correct C code you won't have this problem.  Maybe the compiler is being paticular about certain things now, but its not lying.  The problems it reports are legit.
 [2005-04-22 04:41 UTC] wez@php.net
This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.

Good catch.
 [2005-04-22 04:56 UTC] JClawson at tamu dot edu
thanks
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 27 13:03:36 2021 UTC