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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: JClawson at tamu dot edu
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 06:01:28 2024 UTC