ID:               47536
 Updated by:       j...@php.net
 Reported By:      ikickdogsforfun at hotmail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Compile Warning
 Operating System: Gentoo
 PHP Version:      5.2.9
 New Comment:

These warnings happen only when the embed lib is build with --enable-
debug. I fixed most in CVS. The rest are harmless anyway and only
needed 
for debugging.


Previous Comments:
------------------------------------------------------------------------

[2009-03-01 16:46:48] ikickdogsforfun at hotmail dot com

Description:
------------
When compiling a C program that makes use of the embedded SAPI
(embed.h), there are a few compile warnings that would be nice if they
could be fixed :) Also, this is a manually compiled version of PHP, not
emerged from Gentoo's portage.

Reproduce code:
---------------
Compiled using the following:
gcc -I/usr/lib/php5/include/php/ 
    -I/usr/lib/php5/include/php/main
    -I/usr/lib/php5/include/php/Zend
    -I/usr/lib/php5/include/php/TSRM
    -I/usr/lib/php5/include/php/sapi/embed
    -L/home/crisp/php/local/lib
    -Wall -Wextra -lpthread -ggdb -o httpd *.c
/home/crisp/php/local/lib/libphp5.so

The code itself is here:
http://crispycrisp.org/test.txt

Expected result:
----------------
No compile warnings

Actual result:
--------------
In file included from /usr/lib/php5/include/php/Zend/zend.h:664,
                 from /usr/lib/php5/include/php/main/php.h:34,
                 from
/usr/lib/php5/include/php/sapi/embed/php_embed.h:23,
                 from test.c:1:
/usr/lib/php5/include/php/Zend/zend_variables.h:30: warning: unused
parameter '__zend_filename'
/usr/lib/php5/include/php/Zend/zend_variables.h:30: warning: unused
parameter '__zend_lineno'
/usr/lib/php5/include/php/Zend/zend_variables.h:40: warning: unused
parameter '__zend_filename'
/usr/lib/php5/include/php/Zend/zend_variables.h:40: warning: unused
parameter '__zend_lineno'
In file included from /usr/lib/php5/include/php/Zend/zend_API.h:30,
                 from /usr/lib/php5/include/php/main/php.h:38,
                 from
/usr/lib/php5/include/php/sapi/embed/php_embed.h:23,
                 from test.c:1:
/usr/lib/php5/include/php/Zend/zend_execute.h:65: warning: unused
parameter '__zend_orig_filename'
/usr/lib/php5/include/php/Zend/zend_execute.h:65: warning: unused
parameter '__zend_orig_lineno'



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47536&edit=1

Reply via email to