php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57391 Compilation error
Submitted: 2006-11-24 02:38 UTC Modified: 2015-08-02 20:30 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: arnaud dot lb at gmail dot com Assigned:
Status: Suspended Package: POP3 (PECL)
PHP Version: 5.2.0 RC4 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: arnaud dot lb at gmail dot com
New email:
PHP Version: OS:

 

 [2006-11-24 02:38 UTC] arnaud dot lb at gmail dot com
Description:
------------
Compiling the pop3 extension results in this error with 
php5.2:

/usr/src/pop3-1.0.2/pop3.c: In function 
`pop3_objects_new':
/usr/src/pop3-1.0.2/pop3.c:175: error: structure has no 
member named `in_get'
/usr/src/pop3-1.0.2/pop3.c:176: error: structure has no 
member named `in_set'

GCC version: 3.3.5 (Debian 1:3.3.5-13)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-20 04:25 UTC] priyantha at priyantha dot nl
Same error appears here.

The config here is:

Debian GNU/Linux 3.1
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
PHP version: 5.1.2
 [2007-02-04 10:37 UTC] oskar dot blom at gmail dot com
Have the same problem with php 5.1.6
Running ubuntu edgy eft.
 [2007-02-16 07:54 UTC] jdamian at puertos dot es
in order to fix, you must edit pop3.c and change lines 175 and 176 :
        intern->zo.in_get = 0;
        intern->zo.in_set = 0;
 
with these others:
#if ZEND_MODULE_API_NO >= 20050922
        intern->zo.guards = NULL;
#else
        intern->zo.in_get = 0;
        intern->zo.in_set = 0;
#endif

(get solution from Fileinfo package , had the same trouble)
 [2007-11-08 11:32 UTC] gk at gknw dot de
Thanks to jdamian at puertos dot es for the patch!
I think its time to do a new release so that the pop3 extension can again compile out-of-the-box; here again the suggested patch as diff against version 1.0.2:

--- pop3.c.orig	Mon Jul 25 23:47:04 2005
+++ pop3.c	Thu Nov 08 17:19:00 2007
@@ -172,8 +172,12 @@
 
 	intern = emalloc(sizeof(pop3_object));
 	intern->zo.ce = class_type;
+#if ZEND_MODULE_API_NO >= 20050922
+	intern->zo.guards = NULL;
+#else
 	intern->zo.in_get = 0;
 	intern->zo.in_set = 0;
+#endif /* ZEND_MODULE_API_NO >= 20050922 */
 	intern->zo.properties = NULL;
 	intern->ptr = NULL;
 
please do soon a new release! Thanks!
 [2015-08-02 20:30 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2015-08-02 20:30 UTC] cmb@php.net
The POP3 extension appears to be unmaintained for 10 years.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Sep 15 18:01:27 2019 UTC