php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5934 Incompatable assignment of args
Submitted: 2000-08-03 00:00 UTC Modified: 2000-08-20 02:13 UTC
From: swenson at u dot washington dot edu Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.1pl2 OS: SuSE 2.2.14
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: swenson at u dot washington dot edu
New email:
PHP Version: OS:

 

 [2000-08-03 00:00 UTC] swenson at u dot washington dot edu
On a build I am getting this error:

gcc -DHAVE_CONFIG_H -I. -I/home/root/src/apache_ssl/php-4.0.1pl2/main -I/home/root/src/apache_ssl/php-4.0.1pl2 -I/home/root/src/apache_ssl/php-4.0.1pl2/main -I/home/root/src/apache_ssl/php-4.0.1pl2/Zend -I/home/root/src/apache_ssl/php-4.0.1pl2 -I/usr/include/freetype -I/usr/include/gd -I/home/root/src/apache_ssl/php-4.0.1pl2/ext/mysql/libmysql -I/home/root/src/apache_ssl/php-4.0.1pl2/ext/xml/expat/xmltok -I/home/root/src/apache_ssl/php-4.0.1pl2/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=21 -g -O2  -c main.c && touch main.lo
main.c: In function `php_error_cb':
main.c:370: incompatible types in assignment
main.c:435: incompatible types in assignment

I got around it by commenting out the va_list arg; defines and changing the arguments to php_error_cb to use args directly on lines 370 & 435:

static void php_error_cb(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args)
[...]
//args = orig_args;

This appears to still compile and passes my basic testing. Although I am sure something is going to bite me on this style of patch.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-03 00:12 UTC] swenson at u dot washington dot edu
I have confirmed that this is still a problem on build: php4-200008021445

gcc  -DHAVE_CONFIG_H -I. -I/home/root/src/apache_ssl/php4-200008021445/main -I/home/root/src/apache_ssl/php4-200008021445 -I/home/root/src/apache_ssl/php4-200008021445/main -I/home/root/src/apache_ssl/php4-200008021445/Zend -I/home/root/src/apache_ssl/php4-200008021445 -I/usr/include/freetype -I/usr/include/gd -I/home/root/src/apache_ssl/php4-200008021445/ext/mysql/libmysql -I/home/root/src/apache_ssl/php4-200008021445/ext/xml/expat/xmltok -I/home/root/src/apache_ssl/php4-200008021445/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=21 -g -O2  -c main.c && touch main.lo
main.c: In function `php_error_cb':
main.c:369: incompatible types in assignment
main.c:490: incompatible types in assignment
 [2000-08-03 19:03 UTC] stas@php.net
Failed to reproduce this on my SuSE 6.4. What SuSE version and what compiler do you use?
 [2000-08-20 02:13 UTC] sniper@php.net
No feedback from user.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 11:00:01 2026 UTC