ID: 41029
Updated by: [EMAIL PROTECTED]
Reported By: dgrimes at scvl dot com
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Tru64 V5.1
PHP Version: 5.2.1
New Comment:
Please provide an SSH account on this machine.
Previous Comments:
------------------------------------------------------------------------
[2007-04-09 19:16:57] dgrimes at scvl dot com
I guess I'm not exactly sure what you mean. Are you asking if it's
included in any of the php.[hc] files? If so, then here is the list of
files that reference varargs:
./ext/mbstring/oniguruma/regerror.c
./ext/sqlite/libsqlite/src/printf.c
./ext/standard/formatted_print.c
./main/php.h
./main/php_config.h
However, they all reference <sys/varargs.h>. I checked
/usr/sys/include/varargs.h and it is there too and it's the same version
as that in /usr/include.
Is there an easy way to see if it's being used?
Thanks,
Dean
------------------------------------------------------------------------
[2007-04-09 19:01:00] [EMAIL PROTECTED]
Is /usr/include/varargs.h used?
------------------------------------------------------------------------
[2007-04-09 18:56:15] dgrimes at scvl dot com
Here is the text by line numer:
5546 static int php_ini_get_option(zend_ini_entry *ini_entry, int
num_args, v
a_list args, zend_hash_key *hash_key)
5547 {
5548 zval *ini_array = va_arg(args, zval *);
5549 int module_number = va_arg(args, int);
5550 zval *option;
5551
5552 if (module_number != 0 && ini_entry->module_number !=
module_number) {
5553 return 0;
5554 }
5555
5556 if (hash_key->nKeyLength == 0 || hash_key->arKey[0] != 0) {
5557
5558 MAKE_STD_ZVAL(option);
5559 array_init(option);
5560
5561 if (ini_entry->orig_value) {
5562 add_assoc_stringl(option, "global_value",
ini_entry->orig_value,
ini_entry->orig_value_length, 1);
5563 } else if (ini_entry->value) {
5564 add_assoc_stringl(option, "global_value",
ini_entry->value, ini_e
ntry->value_length, 1);
5565 } else {
5566 dd_assoc_null(option, "global_value");
------------------------------------------------------------------------
[2007-04-09 18:41:11] [EMAIL PROTECTED]
That's good, but is /usr/include/varargs.h included?
What exactly is on line 5548 before zval?
>From what I can see, there is nothing before zval, so the error message
is quite mislading.
------------------------------------------------------------------------
[2007-04-09 18:32:53] dgrimes at scvl dot com
I found the following in /usr/include/varargs.h:
/*
* *****************************************************************
* * *
* * Copyright 2002 Compaq Information Technologies Group, L.P. *
* * *
* * The software contained on this media is proprietary to *
* * and embodies the confidential technology of Compaq *
* * Computer Corporation. Possession, use, duplication or *
* * dissemination of the software and media is authorized only *
* * pursuant to a valid written license from Compaq Computer *
* * Corporation. *
* * *
* * RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure *
* * by the U.S. Government is subject to restrictions as set *
* * forth in Subparagraph (c)(1)(ii) of DFARS 252.227-7013, *
* * or in FAR 52.227-19, as applicable. *
* * *
* *****************************************************************
*/
/*
* HISTORY
*/
/* $Header:
/share/buffer/build/rcs.dsk1/os/src/usr/include/alpha/varargs.h,v
1.2.11.3 1998/07/17 13:15:44 Arvind_Jagannath Exp $ */
#ifndef _VARARGS_H_
#define _VARARGS_H_
#include <va_list.h> /* defines va_list */
#define va_dcl long va_alist;
#define va_start(list) __builtin_va_start(list, va_alist, 0)
#define va_end(list) ((void)0)
#if defined(__LINT)
#define va_arg(list, mode) \
(*(mode *)(((list)._offset += ((int)sizeof(mode) + 7) &
-8)))
#else
#define va_arg(list, mode) \
(*((__builtin_isfloat(mode) && sizeof(mode) > sizeof(double)) ?
\
*(((list)._offset += ((int)sizeof(mode *) + 7) & -8), \
(mode **)( ((char *)(list)._a0) + (list)._offset - \
(((int)sizeof(mode *) + 7) & -8))) : \
(((list)._offset += ((int)sizeof(mode) + 7) & -8), \
(mode *)( ((char *)(list)._a0) + (list)._offset - \
((__builtin_isfloat(mode) && (list)._offset <= (6
* 8)) ? \
(6 * 8) + 8 : ((int)sizeof(mode) + 7) & -8)))))
#endif /* __LINT */
#endif /* _VARARGS_H_ */
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/41029
--
Edit this bug report at http://bugs.php.net/?id=41029&edit=1