# Possible problem in Zend

- Thread: https://externals.io/message/24514
- Original archive: https://news-web.php.net/php.internals/24514
- Started by Frank M. Kromann on 2006-07-18T19:59:31+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #24514 — Frank M. Kromann — 2006-07-18T19:59:31+00:00

URL: https://externals.io/message/24514#24514

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

---

## #24566 — Andi Gutmans — 2006-07-18T22:31:01+00:00

URL: https://externals.io/message/24514#24566 · In reply to: #24514

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

> -----Original Message-----
> From: Frank M. Kromann [mailto:frank@kromann.info] 
> Sent: Tuesday, July 18, 2006 1:00 PM
> To: internals@lists.php.net
> Subject: [PHP-DEV] Possible problem in Zend
> 
> 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
> 
> --
>  To 
> unsubscribe, visit: http://www.php.net/unsub.php

---

## #24599 — Pierre — 2006-07-18T23:20:13+00:00

URL: https://externals.io/message/24514#24599 · In reply to: #24566

> 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

---

## #24639 — Antony Dovgal — 2006-07-19T06:33:31+00:00

URL: https://externals.io/message/24514#24639 · In reply to: #24514

> 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
