php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58066 implicit declarations
Submitted: 2008-02-26 20:48 UTC Modified: 2008-03-01 16:26 UTC
From: crrodriguez at suse dot de Assigned: pestilence (profile)
Status: Closed Package: xrange (PECL)
PHP Version: 5.2.1 OS: Linux
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: crrodriguez at suse dot de
New email:
PHP Version: OS:

 

 [2008-02-26 20:48 UTC] crrodriguez at suse dot de
Description:
------------
compiler reports that there are some missing includes in the extension

Reproduce code:
---------------
patch:


Index: xrange.c
===================================================================
--- xrange.c.orig   2008-02-26 06:20:08.000000000 +0100
+++ xrange.c    2008-02-27 02:39:31.000000000 +0100
@@ -24,6 +24,8 @@

 #include "php.h"
 #include "php_ini.h"
+#include "ext/standard/info.h"
+#include "zend_exceptions.h"
 #include "ext/spl/spl_exceptions.h"
 #include "ext/spl/spl_iterators.h"
 #include "php_xrange.h"


Expected result:
----------------
no warnings

Actual result:
--------------
/usr/src/packages/BUILD/xrange-1.3/xrange.c: In function 'zm_info_xrange':
/usr/src/packages/BUILD/xrange-1.3/xrange.c:205: warning: implicit declaration of function 'php_info_print_table_start'
/usr/src/packages/BUILD/xrange-1.3/xrange.c:206: warning: implicit declaration of function 'php_info_print_table_header'
/usr/src/packages/BUILD/xrange-1.3/xrange.c:207: warning: implicit declaration of function 'php_info_print_table_row'
/usr/src/packages/BUILD/xrange-1.3/xrange.c:208: warning: implicit declaration of function 'php_info_print_table_end'
/usr/src/packages/BUILD/xrange-1.3/xrange.c: In function 'zim_PHP_XRANGE_XRI_NAME_seek':
/usr/src/packages/BUILD/xrange-1.3/xrange.c:397: warning: implicit declaration of function 'zend_throw_exception'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-01 16:26 UTC] pestilence669@php.net
Verified. Fix pushed to PECL and available from CVS tag 
"RELEASE_1_3_1". Thanks for the bug report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 07:01:31 2024 UTC