php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56675 Call to uneclared property
Submitted: 2005-11-26 12:21 UTC Modified: 2006-01-03 16:04 UTC
From: adamg at pld-linux dot org Assigned:
Status: Closed Package: Fileinfo (PECL)
PHP Version: 5.0.5 OS: PLD Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: adamg at pld-linux dot org
New email:
PHP Version: OS:

 

 [2005-11-26 12:21 UTC] adamg at pld-linux dot org
Description:
------------
In fileinfo.c, in function fileinfo_object_new() there is  
a call to intern->std.guards property of an finfo_object  
object instance. The problem is that this function does  
not exist which cause build to fail. 

Reproduce code:
---------------
This can be fixed by applying following patch:
--- fileinfo.c~ 2005-11-25 00:12:38.000000000 +0100
+++ fileinfo.c  2005-11-26 18:18:55.373992536 +0100
@@ -103,7 +103,6 @@
        intern = ecalloc(1, sizeof(struct finfo_object));
        intern->zo.ce = class_type;
        intern->zo.properties = NULL;
-       intern->std.guards = NULL;
        intern->ptr = NULL;

        retval.handle = zend_objects_store_put(intern, finfo_objects_dtor, NULL, NULL TSRMLS_CC);



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-27 13:46 UTC] website-pecl at interfasys dot ch
Same problem on FreeBSD 5.4

/usr/home/software/tmp/tmpCroF4S/Fileinfo-1.0.1/fileinfo.c: In function `finfo_objects_new':
/usr/home/software/tmp/tmpCroF4S/Fileinfo-1.0.1/fileinfo.c:106: error: structure has no member named `std'
 [2005-11-29 07:16 UTC] akorthaus at web dot de
Same problem with Gentoo Linux and PHP 5.1.1. 

The patch solves the issue, thanks a lot!
 [2005-11-30 14:46 UTC] free4cd at yahoo dot de
Same problem with PHP 5.1.0(1). During make following error occurs:

 gcc -I. -I/fileinfo/Fileinfo-1.0.1 -DPHP_ATOM_INC -I/fileinfo/Fileinfo-1.0.1/include -I/fileinfo/Fileinfo-1.0.1/main -I/fileinfo/Fileinfo-1.0.1 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /fileinfo/Fileinfo-1.0.1/fileinfo.c  -fPIC -DPIC -o .libs/fileinfo.o
/fileinfo/Fileinfo-1.0.1/fileinfo.c: In function `finfo_objects_new':
/fileinfo/Fileinfo-1.0.1/fileinfo.c:106: error: structure has no member named `std'
make: *** [fileinfo.lo] Error 1

Patch solved the problem. Thanks.
 [2006-01-03 16:04 UTC] ilia at prohost dot org
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/Fileinfo


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 17:01:29 2024 UTC