[PHP-DEV] PHP CVS sometimes give sources instead parsed script

2002-09-29 Thread Holger Schopohl

Hi,

with the current cvs version, my webserver results sometimes the source 
code instead of the parsed script.

Is a knows problem ?

I'm using glibc 2.1.3 gcc 2.95
and this configure parameter:
CFLAGS=-O3 -mcpu=i686 -march=i686 -fomit-frame-pointer nice -n 18 
./configure --enable-memory-limit --enable-trans-sid --with-
apxs=/usr/local/apache/current/bin/apxs --with-config-file-path=/etc --
with-curl=shared,/usr/local/curl/current --with-
mhash=shared,/usr/local/mhash/current --with-
mysql=/usr/local/mysql/current --with-mm=/usr/local --with-zlib --with-
mcrypt=shared,/usr/local/libmcrypt/current --with-gd=shared,php --with-
jpeg-dir=/usr/local --with-png-dir=/usr/local --with-freetype-
dir=/usr/local --disable-short-tags --disable-overload --disable-posix 
--disable-ctype --disable-tokenizer --disable-mbstring --disable-debug


Regards,

Holger

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] if (empty(trim('x'))) == parse error?

2001-11-28 Thread Holger Schopohl

Hi,

why php results a parse error on this expression?

if (empty(trim('x'))) echo Hello;

the statement works fine:
$x=trim('x');
if (empty($x)) echo Hello;

it is not really logically.

Regards,

Holger

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Postgres Socket Dir Option?

2001-11-02 Thread Holger Schopohl

Hi,

i miss an option (php.ini or compile) to set the directory of postgres 
socket, because the default dir /tmp is not in all situations secure.

maybe pgsql.socket_dir ...

Regards,

Holger

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] more than 130 warning during compile ?

2001-10-01 Thread Holger Schopohl

In article Pine.LNX.4.30.0109261951320.1096-10
@mars.office.jdimedia.nl, [EMAIL PROTECTED] says...
 Hello,
 
 what is your configure line?

Hmmm, i have checked this a few days ago.

In the meantime the warnings have reduce less
than 10:

nice :-)

In file included from /usr/local/mysql/current/include/mysql/mysql.h:77,
 from php_mysql.c:61:
/usr/local/mysql/current/include/mysql/mysql_version.h:15: warning: 
`MYSQL_UNIX_ADDR' redefined
/usr/src/php4/TSRM/../main/php_config.h:1620: warning: this is the 
location of the previous definition
sysvsem.c: In function `zif_sem_remove':
sysvsem.c:405: warning: passing arg 2 of `semctl' makes integer from 
pointer without a cast
sysvsem.c:413: warning: passing arg 2 of `semctl' makes integer from 
pointer without a cast
zip.c: In function `zif_zip_entry_open':
zip.c:263: warning: assignment makes integer from pointer without a cast
In file included from /usr/local/apache/1.3.20/include/httpd.h:72,
 from sapi_apache.c:32:
/usr/local/apache/1.3.20/include/ap_config.h:1294: warning: 
`XtOffsetOf' redefined
/usr/src/php4/main/php.h:345: warning: this is the location of the 
previous definition
In file included from /usr/local/apache/1.3.20/include/httpd.h:72,
 from mod_php4.c:32:
/usr/local/apache/1.3.20/include/ap_config.h:1294: warning: 
`XtOffsetOf' redefined
/usr/src/php4/main/php.h:345: warning: this is the location of the 
previous definition
In file included from php_apache_http.h:6,
 from php_apache.c:45:
/usr/local/apache/1.3.20/include/ap_config.h:1294: warning: 
`XtOffsetOf' redefined
/usr/src/php4/main/php.h:345: warning: this is the location of the 
previous definition

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] zip ext compile problem

2001-09-26 Thread Holger Schopohl

Hi,

in the current cvs tree the zip extension
have problems to compile with zziplib 0.10.27

zip.c: In function `zif_zip_entry_open':
zip.c:265: parse error before `else'
zip.c: At top level:
zip.c:266: parse error before `return'
zip.c: In function `zif_zip_entry_read':
zip.c:290: parse error before `else'
zip.c:291: `__l' undeclared (first use in this function)
zip.c:291: (Each undeclared identifier is reported only once
zip.c:291: for each function it appears in.)
zip.c:291: `__s' undeclared (first use in this function)
zip.c: At top level:
zip.c:291: parse error before `return'

Regards,

Holger

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: zip ext compile problem

2001-09-26 Thread Holger Schopohl

In article 00d101c1466a$ad962320$040a@giga, [EMAIL PROTECTED] 
says...
 Fixed
Hmm, i have even now:

zip.c: In function `zif_zip_entry_open':
zip.c:263: warning: assignment makes integer from pointer without a cast
zip.c: In function `zif_zip_entry_read':
zip.c:287: parse error before `else'
zip.c:288: `__l' undeclared (first use in this function)
zip.c:288: (Each undeclared identifier is reported only once
zip.c:288: for each function it appears in.)
zip.c:288: `__s' undeclared (first use in this function)
zip.c: At top level:
zip.c:288: parse error before `return'

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] more than 130 warning during compile ?

2001-09-26 Thread Holger Schopohl

Hi,

is it normal that a simple compile results more than 130 warnings?

here is my warning results:

zend_language_scanner.c:2714: warning: `yy_last_accepting_state' defined 
but not used
zend_language_scanner.c:2715: warning: `yy_last_accepting_cpos' defined 
but not used
zend_language_scanner.c:2721: warning: `yy_more_flag' defined but not 
used
zend_language_scanner.c:2722: warning: `yy_more_len' defined but not 
used
zend_ini_scanner.c: In function `ini_lex':
zend_ini_scanner.c:818: warning: label `find_rule' defined but not used
./zend_ini_scanner.l: At top level:
zend_ini_scanner.c:1342: warning: `yyunput' defined but not used
zend_list.c: In function `zend_destroy_rsrc_list':
zend_list.c:233: warning: variable `p' might be clobbered by `longjmp' 
or `vfork'
zend_hash.c: In function `zend_hash_compare':
zend_hash.c:1149: warning: `p2' might be used uninitialized in this 
function
main.c: In function `php_request_startup':
main.c:638: warning: variable `retval' might be clobbered by `longjmp' 
or `vfork'
main.c: In function `php_hash_environment':
main.c:1053: warning: `dummy_track_vars_array' might be used 
uninitialized in this function
rfc1867.c: In function `php_mime_split':
rfc1867.c:105: warning: `c' might be used uninitialized in this function
curl.c: In function `curl_write_header':
curl.c:398: warning: `length' might be used uninitialized in this 
function
curl.c: In function `zif_curl_setopt':
curl.c:615: warning: `error' might be used uninitialized in this 
function
ming.c: In function `destroy_SWFFont_resource':
ming.c:1208: warning: implicit declaration of function `destroySWFBlock'
ming.c: In function `zif_swfshape_addfill':
ming.c:1845: warning: `fill' might be used uninitialized in this 
function
ming.c: In function `zif_swfshape_setleftfill':
ming.c:1944: warning: `fill' might be used uninitialized in this 
function
ming.c: In function `zif_swfshape_setrightfill':
ming.c:1997: warning: `fill' might be used uninitialized in this 
function
ming.c: In function `zif_swfshape_drawglyph':
ming.c:2220: warning: `size' might be used uninitialized in this 
function
In file included from /usr/local/mysql/current/include/mysql/mysql.h:77,
 from php_mysql.c:61:
/usr/local/mysql/current/include/mysql/mysql_version.h:15: warning: 
`MYSQL_UNIX_ADDR' redefined
/usr/src/php4/TSRM/../main/php_config.h:1620: warning: this is the 
location of the previous definition
openssl.c: In function `php_openssl_csr_from_zval':
openssl.c:1253: warning: `filename' might be used uninitialized in this 
function
openssl.c: In function `zif_openssl_csr_sign':
openssl.c:1379: warning: `key' might be used uninitialized in this 
function
openssl.c:1379: warning: `priv_key' might be used uninitialized in this 
function
openssl.c: In function `zif_openssl_pkcs7_verify':
openssl.c:1931: warning: `store' might be used uninitialized in this 
function
openssl.c: In function `zif_openssl_pkcs7_sign':
openssl.c:2150: warning: `outfilename' might be used uninitialized in 
this function
openssl.c: In function `zif_openssl_private_decrypt':
openssl.c:2360: warning: `cryptedbuf' might be used uninitialized in 
this function
openssl.c: In function `zif_openssl_public_decrypt':
openssl.c:2480: warning: `cryptedbuf' might be used uninitialized in 
this function
php_pcre.c: In function `php_pcre_replace':
php_pcre.c:683: warning: `replace_len' might be used uninitialized in 
this function
php_pcre.c:685: warning: `replace' might be used uninitialized in this 
function
php_pcre.c:691: warning: `replace_end' might be used uninitialized in 
this function
posix.c: In function `zif_posix_getpgid':
posix.c:449: warning: implicit declaration of function `getpgid'
posix.c: In function `zif_posix_getsid':
posix.c:478: warning: implicit declaration of function `getsid'
mod_files.c: In function `ps_read_files':
mod_files.c:268: warning: implicit declaration of function `pread'
mod_files.c: In function `ps_write_files':
mod_files.c:299: warning: implicit declaration of function `pwrite'
sockets.c: In function `zif_socket_select':
sockets.c:547: warning: `max_fd' might be used uninitialized in this 
function
sockets.c: In function `zif_socket_bind':
sockets.c:1078: warning: `php_sock' might be used uninitialized in this 
function
sockets.c: In function `zif_socket_recvfrom':
sockets.c:1417: warning: `php_sock' might be used uninitialized in this 
function
sockets.c: In function `zif_socket_sendto':
sockets.c:1511: warning: `php_sock' might be used uninitialized in this 
function
sockets.c: In function `zif_socket_recvmsg':
sockets.c:1585: warning: `iov' might be used uninitialized in this 
function
sockets.c:1588: warning: `php_sock' might be used uninitialized in this 
function
sockets.c: In function `zif_socket_sendmsg':
sockets.c:1735: warning: `iov' might be used uninitialized in this 
function
sockets.c:1736: warning: `php_sock' might be used uninitialized in this 
function
array.c: In function `zif_array_map':
array.c:3064: 

Re: [PHP-DEV] curl compiler failed

2001-09-25 Thread Holger Schopohl

  and also nl2br() crashes and chunk_split($string,2,' '); doesnt work ...
 
 nl2br() should be fixed can you make sure with the latest CVS, and
 make a backtrace of the crash?

okay, with the current cvs version, it works fine,
sorry

-- 
Holger

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] curl compiler failed

2001-09-24 Thread Holger Schopohl

Hi,

in the current cvs tree:

curl.c: In function `zm_startup_curl':
curl.c:196: `CURLINFO_SSL_VERIFY_RESULT' undeclared (first use in this 
function)
curl.c:196: (Each undeclared identifier is reported only once
curl.c:196: for each function it appears in.)
curl.c: In function `zif_curl_getinfo':
curl.c:923: `CURLINFO_SSL_VERIFY_RESULT' undeclared (first use in this 
function)
make[3]: *** [curl.slo] Error 1
make[3]: Leaving directory `/usr/src/php4/ext/curl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php4/ext/curl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php4/ext'
make: *** [all-recursive] Error 1

hmm,

and also nl2br() crashes and chunk_split($string,2,' '); doesnt work ... 
:-(

Regards,

Holger

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] mcrypt: Unknown list entry type in request shutdown

2001-08-23 Thread Holger Schopohl

Hi 

CVS PHP notify:

Warning: Unknown list entry type in request shutdown

on each mcrypt_module_open() call.

i have test it on 2 diffrent systems under linux
and it each time the same ...

Regards,
-- 
Holger

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] array_unique: problems with type array?

2001-08-16 Thread Holger Schopohl

Hi all,

is it correct that the following code
(PHP 4.0.6)

---snip---
$a[1]=array(1,2);
$a[2]=array(2,4);
$b=array_unique($a);
print_r($b);
---snap---

output this?:

---
Array
(
[1] = Array
(
[0] = 1
[1] = 2
)

)
---

instead of:
---
Array
(
[1] = Array
(
[0] = 1
[1] = 2
)

[2] = Array
(
[0] = 2
[1] = 4
)

)
---

Both entries are not unique and in the documention nobody
write that this case is not allowed.

Regards,

-- 
Holger

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] error_reporting error_log

2001-08-10 Thread Holger Schopohl

Hi all,

i have a suggestion to different the
logging of warnings and errors.

why we don't split the reporting for display errors 
and logfile errors. the vantage would be,
on webserver we can reduce the error display with

display_errors = On
error_reporting_display  =  E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR

and at the same time the webmaster can nevertheless
see all problems with

log_errors = On
error_log = /var/log/php_errorlog
error_reporting_logging  =  E_ALL

this increase the security and productivity on
each webserver.

Regards,

-- 
Holger

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] ImageCreateFromString; support for .gd and .gd2

2001-08-07 Thread Holger Schopohl

Hi,

ImageCreateFromString doesnt support .gd and .gd2
file types.
I think, its important to support this
types, because ImageCreateFromString its ideal for
images from databases and .gd2 its much more faster
than PNG.

Explicite the time to save a PNG with ImagePNG and
higher resolutions (800x600) is absolute not reasonable.

Also i miss an implementation of the memory block functions
of libgd, like
gdImagePngPtr, gdImageJpegPtr, gdImageWBMPPtr, gdImageGdPtr,
gdImageGd2Ptr.

This is usefull for getting an image with ImagePNG,
manipulate it and wrote direct to a database.

-- 
Holger

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] apache2filter XtOffsetOf' redefined

2001-08-06 Thread Holger Schopohl

Hi,

i can't compile the current cvs version
with apache 2.0.18.

make[3]: Entering directory 
`/home/schopohl/development/php4/sapi/apache2filter'
/bin/sh /home/schopohl/development/php4/libtool --silent --mode=compile 
/home/schopohl/development/php4/meta_ccld  -I. -
I/home/schopohl/development/php4/sapi/apache2filter -
I/home/schopohl/development/php4/main -I/home/schopohl/development/php4 
-I/usr/local/apache/2.0.18/include -
I/home/schopohl/development/php4/Zend -
I/usr/local/mysql/current/include/mysql -
I/home/schopohl/development/php4/ext/xml/expat  -DNO_DBM_REWRITEMAP -
D_REENTRANT -I../TSRM -I/home/schopohl/development/php4/TSRM -g -O2 -
pthread -prefer-pic  -c sapi_apache2.c
In file included from /usr/local/apache/2.0.18/include/apr_buckets.h:61,
 from /usr/local/apache/2.0.18/include/util_filter.h:59,
 from sapi_apache2.c:33:
/usr/local/apache/2.0.18/include/apr_general.h:115: warning: 
`XtOffsetOf' redefined
/home/schopohl/development/php4/main/php.h:328: warning: this is the 
location of the previous definition
sapi_apache2.c: In function `php_output_filter':
sapi_apache2.c:330: too many arguments to function `ap_save_brigade'
make[3]: *** [sapi_apache2.lo] Error 1

what's wrong?

-- 
Holger

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] apache2filter XtOffsetOf' redefined

2001-08-06 Thread Holger Schopohl

In article [EMAIL PROTECTED], sb@sebastian-
bergmann.de says...
 Holger Schopohl wrote:
  i can't compile the current cvs version
  with apache 2.0.18.
 
   Please upgrade to a recent Apache 2.0 version. It compiles fine
   with httpd-2.0's latest CVS.

okay, that works fine, thanks.

someone has wrote in sapi/apache2filter/README, that
i must only write

Files *.php
SetOutputFilter PHP
SetInputFilter PHP
/Files

is it all? no AddType ?
my apache parse no .php file...

-- 
Holger

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: faster serializer?

2001-08-03 Thread Holger Schopohl

 PHP needs a faster serializer and deserializer.  It should be possible
 to make one that is at least as fast as Zend compiling and executing
 code defining the same structure.
 
 Does anyone else want a faster serializer?  Anyone interested in
 contributing to a fund so we can set up a prize for the fastest
 implementation? :-)

a very good idea !

-- 
Holger

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]