|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-01 21:48 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 05:00:01 2025 UTC |
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'