From:             ikickdogsforfun at hotmail dot com
Operating system: Gentoo
PHP version:      5.2.9
PHP Bug Type:     Compile Warning
Bug description:  Build warnings with embedded SAPI

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 bug report at http://bugs.php.net/?id=47536&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47536&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47536&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47536&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47536&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47536&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47536&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47536&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47536&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47536&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47536&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47536&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47536&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47536&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47536&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47536&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47536&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47536&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47536&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47536&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47536&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47536&r=mysqlcfg

Reply via email to