Possible problem in Zend

php.internals

Frank M. Kromann

20 years ago
Hello Everyone, With the current version of CVS PHP_5_2 branch I get this compiler warning: c:\php\php5_2\zend\zend.c(565) : warning C4700: local variable 'tsrm_ls' used without having been initialized - Frank

Andi Gutmans

20 years ago
There's also a build error in ZTS in ext/filter and warnings in ext/date. Can someone take a look? /bin/sh /home/andi/php5/libtool --silent --preserve-dup-deps --mode=compile /home/andi/php5/meta_ccld -Iext/filter/ -I/home/andi/php5/ext/filter/ -DPHP_ATOM_INC -I/home/andi/php5/include -I/home/andi/php5/main -I/home/andi/php5 -I/usr/local/include -I/usr/include/libxml2 -I/home/andi/php5/pcrelib -I/home/andi/php5/ext/date/lib -I/home/andi/php5/TSRM -I/home/andi/php5/Zend -D_REENTRANT -I/usr/include -g -O2 -pthread -DZTS -c /home/andi/php5/ext/filter/filter.c -o ext/filter/filter.lo In file included from /home/andi/php5/ext/filter/php_filter.h:25, from /home/andi/php5/ext/filter/filter.c:27: /home/andi/php5/main/SAPI.h:263: error: syntax error before "zend_function_entry" /home/andi/php5/main/SAPI.h:263: warning: no semicolon at end of struct or union /home/andi/php5/ext/filter/filter.c: In function `php_filter_get_storage': /home/andi/php5/ext/filter/filter.c:428: error: structure has no member named `register_globals' /home/andi/php5/ext/filter/filter.c:428: error: structure has no member named `register_long_arrays' /home/andi/php5/ext/filter/filter.c: In function `zif_input_get_args': /home/andi/php5/ext/filter/filter.c:704: warning: passing arg 2 of `zend_hash_get_current_key_ex' from incompatible pointer type make: *** [ext/filter/filter.lo] Error 1 Thx. Andi

Pierre Joye

20 years ago
On 7/19/06, Andi Gutmans <andi@zend.com> wrote:
> There's also a build error in ZTS in ext/filter and warnings in ext/date. > Can someone take a look?
> -g -O2 -pthread -DZTS -c /home/andi/php5/ext/filter/filter.c -o > ext/filter/filter.lo > In file included from /home/andi/php5/ext/filter/php_filter.h:25, > from /home/andi/php5/ext/filter/filter.c:27: > /home/andi/php5/main/SAPI.h:263: error: syntax error before > "zend_function_entry" > /home/andi/php5/main/SAPI.h:263: warning: no semicolon at end of struct or > union > /home/andi/php5/ext/filter/filter.c: In function `php_filter_get_storage': > /home/andi/php5/ext/filter/filter.c:428: error: structure has no member > named `register_globals' > /home/andi/php5/ext/filter/filter.c:428: error: structure has no member > named `register_long_arrays' > /home/andi/php5/ext/filter/filter.c: In function `zif_input_get_args': > /home/andi/php5/ext/filter/filter.c:704: warning: passing arg 2 of > `zend_hash_get_current_key_ex' from incompatible pointer type > make: *** [ext/filter/filter.lo] Error 1
that sounds like you trying to build filter with CLI but configured or partially compiled with CGI. Can you try a make clean and make? I built filter on linux and windows with ZTS successfully (cli or cgi). --Pierre --Pierre

Andi Gutmans

20 years ago
Didn't help. I'm building with experimental ZTS. If you can't reproduce I'll take a look tomorrow. Andi

Pierre Joye

20 years ago
On 7/19/06, Andi Gutmans <andi@zend.com> wrote:
> Didn't help. I'm building with experimental ZTS. If you can't reproduce I'll > take a look tomorrow.
I will try it too. I have a couple things to change too :) Btw, I just created the branche in filter, it was not present in 5.2. --Pierre

Antony Dovgal

20 years ago
On 19.07.2006 01:31, Andi Gutmans wrote:
> There's also a build error in ZTS in ext/filter and warnings in ext/date. > Can someone take a look?
I've just fixed several problems in ext/filter, but those weren't the problems you mentioned. Also, I don't see any warnings in ext/date either (only a couple in HEAD). Though, I can see this one in HEAD only:
> /home/andi/php5/ext/filter/filter.c:704: warning: passing arg 2 of > `zend_hash_get_current_key_ex' from incompatible pointer type > make: *** [ext/filter/filter.lo] Error 1
and it's well expected, as ext/filter is not Unicode read yet. Try with clean checkout, looks like you somehow have messed the things up..
-- Wbr, Antony Dovgal

Antony Dovgal

20 years ago
On 18.07.2006 22:59, Frank M. Kromann wrote:
> Hello Everyone, > > With the current version of CVS PHP_5_2 branch I get this compiler > warning: > > c:\php\php5_2\zend\zend.c(565) : warning C4700: local variable 'tsrm_ls' > used without having been initialized
Fixed, thanks for the heads-up.
-- Wbr, Antony Dovgal