Re: [PHP-DEV] GD broken ? compiler errors !

2002-09-04 Thread Markus Fischer
You just can't mix current CVS c sources witth current stable release. It would be like gambling. The GD module has new enhancements in it which aren't available in 4.2.2 so that won't work. Please first test with http://www.php.net/~zeev/php-4.2.3RC2.tar.gz or even

[PHP-DEV] php script compilation

2002-09-04 Thread m . musumeci
hi everybody, does anyone know if there is any opensource tool for compiling or bytecoding a php script? i know there is zend compiler but it costs too much. thanks Massimo -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] php script compilation

2002-09-04 Thread Alan Knowles
[EMAIL PROTECTED] wrote: hi everybody, does anyone know if there is any opensource tool for compiling or bytecoding a php script? i know there is zend compiler but it costs too much. thanks Massimo pear.php.net - look for bcompiler (very experimental) based on the compiler in apc (have a

Re: [PHP-DEV] ZendEngine2 availability

2002-09-04 Thread Dan Hardiker
Sorry if this is out of place, but is there any estimates as to when the famous Z2 might be ready? There is more (accurate) information in the archives of this list, but from what I recall, the estimates were about 6 months off. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software Systems

[PHP-DEV] Re: PHP_SETUP_ICONV in acinclude.m4. Is it needed?

2002-09-04 Thread Jani Taskinen
On Wed, 4 Sep 2002, Yasuo Ohgaki wrote: Title tells it. I suppose it should be done in ext/iconv/config.m4. Any reason not to doing it config.m4? Yes. It's needed elsewhere too. Only way to make sure it's available always (like with phpize'd builds) is to have it in

RE: [PHP-DEV] ZendEngine2 availability

2002-09-04 Thread phpsurf
I'am also very interested in testing ZE2 Is there any way to have a nightly build using ZE2 added to the download list ? or maybe some periodic snapshots (with full windows builds please :)) that would really be great and allow people to start developping project that need ZE2 and serveral

[PHP-DEV] [PATCH] array_diff_assoc()

2002-09-04 Thread Andrey
Hi, the attached unified diffs can be used to add new function named array_diff_assoc(). This function works like array_diff() (and shares most of it code) but it is more restrictive. An element from the result array is removed if there is an element in arrays from 2 to N that has same value

[PHP-DEV] long long data type in libmysql.

2002-09-04 Thread Ananth Kesari
Hi, We are working on porting PHP onto NetWare. PHP-4.2.2 sources for libmysql seem to be using the data type long long and we are facing some problems handling this data type. We see extensive use of _WIN32 and _MSC_VER in these files and so we are sure that it was compiled with MSVC. But we

Re: [PHP-DEV] long long data type in libmysql.

2002-09-04 Thread Robert McKay
On Wed, 4 Sep 2002, Ananth Kesari wrote: Hi, We are working on porting PHP onto NetWare. PHP-4.2.2 sources for libmysql seem to be using the data type long long and we are facing some problems handling this data type. We see extensive use of _WIN32 and _MSC_VER in these files and so we

Re: [PHP-DEV] long long data type in libmysql.

2002-09-04 Thread Edin Kadribasic
Hi, libmysql compiles fine on win32 using MSVC. Have a look at ext\mysql\libmysql\libmysql.dsp on which defines are used. Edin - Original Message - From: Ananth Kesari [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 04, 2002 1:02 PM Subject: [PHP-DEV] long long data

Re: [PHP-DEV] --disable-all / --enable-all

2002-09-04 Thread derick
Great! Derick On Wed, 4 Sep 2002, Jani Taskinen wrote: Attached patch adds --disable-all / --enable-all configure options to disable/enable all extensions You can do something like this now (tested): ./configure --disable-all --with-zlib To only

Re: [PHP-DEV] Re: A little help needed - get_filename() and get_linenum()

2002-09-04 Thread Dan Hardiker
Appologies :) That was a quick fix! heh Thanks for your help, Hello! You probably did not see magic constants __FILE__ and __LINE__ in PHP manual ? Check this: http://si.php.net/manual/en/language.constants.php Cheers, Dejan Dan Hardiker [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP-DEV] FOR ALAN: bcompiler

2002-09-04 Thread Alan Knowles
[EMAIL PROTECTED] wrote: Hi, i have tried bcompiler and read the installing instructions. i unpack, run phpize, run buildconf and configure (using --with-bcompiler) but i get a sitax error on line 11094 in configure and the execution aborts. have you any suggest? It's probably better

[PHP-DEV] Re: #19212 [Com]: Socket extension won't compile

2002-09-04 Thread Melvyn Sopacua
On 4 Sep 2002 [EMAIL PROTECTED] wrote: Have hunch this is a bug in ext/sockets/config.m4. Index: ext/sockets/config.m4 === RCS file: /repository/php4/ext/sockets/config.m4,v retrieving revision 1.10 diff -u -r1.10 config.m4 ---

[PHP-DEV] __LINE__, __FILE__ and function()

2002-09-04 Thread Dan Hardiker
Hi all, Sorry if this isn't an interesting feature for anyone else, but it would prove to be very useful for me. In the following test case: ?php function output($line=__LINE__) { echo Function called on line $linebr; } output(); output(); ? The variable $line is calculated once

Re: [PHP-DEV] SAPI/CGI and error_log()

2002-09-04 Thread Marcus Börger
At 22:24 28.08.2002, [EMAIL PROTECTED] wrote: On Wed, 28 Aug 2002, Marcus Börger wrote: Results with yesturdays sources: cgi without server: [marcus@zaphod sebastian-bergmann]$ /usr/src/php4/php error-log.php Status: 200 Content-type: text/html X-Powered-By: PHP/4.3.0-dev

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/cgi cgi_main.c

2002-09-04 Thread Sebastian Bergmann
Marcus Börger wrote: helly Wed Sep 4 11:30:59 2002 EDT Modified files: /php4/sapi/cgi cgi_main.c Log: Fix headers when default content type is used. #THIS fixes the problems with error_log() Thank you! -- Sebastian Bergmann http://sebastian-bergmann.de/

Re: [PHP-DEV] SAPI/CGI and error_log()

2002-09-04 Thread Sebastian Bergmann
Marcus Börger wrote: Could you please verify my patch on cgi_main.c to fix this issue? The test script I submitted works ok now. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift:

[PHP-DEV] PHP 4.2.3 release.

2002-09-04 Thread Xavier Spriet
Hi Guys, I don't know exactly when you plan to release PHP 4.2.3 as a final release but I believe I just found a bug that I haven't seen reported on bugs.php.net or in any of the php-dev threads, unfortunately, I will not be able to confirm this bug until friday night, time at which I will

Re: [PHP-DEV] PHP 4.2.3 release.

2002-09-04 Thread derick
Hey, did this ever work at all? AFAIK you can only use [] _once_ to denote it's an array. Derick On 4 Sep 2002, Xavier Spriet wrote: Hi Guys, I don't know exactly when you plan to release PHP 4.2.3 as a final release but I believe I just found a bug that I haven't seen reported on

Re: [PHP-DEV] PHP 4.2.3 release.

2002-09-04 Thread Rasmus Lerdorf
This is not a bug. Your syntax is wrong. It should be: fields[tech_id][] -Rasmus On 4 Sep 2002, Xavier Spriet wrote: Hi Guys, I don't know exactly when you plan to release PHP 4.2.3 as a final release but I believe I just found a bug that I haven't seen reported on bugs.php.net or in

Re: [PHP-DEV] PHP 4.2.3 release.

2002-09-04 Thread Mike Hall
Would the select name=fields['tech_id'][] syntax work? That should give an identical array, if I'm seeing what you're doing right. Mike - Original Message - From: [EMAIL PROTECTED] To: Xavier Spriet [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, September 04, 2002 6:47 PM

Re: [PHP-DEV] PHP 4.2.3 release.

2002-09-04 Thread Mike Hall
Beat me to it! :-) - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Xavier Spriet [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, September 04, 2002 6:50 PM Subject: Re: [PHP-DEV] PHP 4.2.3 release. This is not a bug. Your syntax is wrong. It should be:

Re: [PHP-DEV] PHP 4.2.3 release.

2002-09-04 Thread Xavier Spriet
my bad... it was indeed a user error... Thanks everyone ;) On Wed, 2002-09-04 at 14:09, Mike Hall wrote: Beat me to it! :-) - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Xavier Spriet [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, September 04, 2002

[PHP-DEV] Segfault in 4.2.3RC2

2002-09-04 Thread Martin Jansen
Obviously PHP 4.2.3RC2 segfaults when using wordwrap() with the following configure options: './configure' \ '--with-config-file-path=/etc' \ '--with-exec-dir=/var/www/php-bin' \ '--enable-safe-mode' \ '--enable-calendar' \ '--with-mysql=/usr/local/mysql/current' \

Re: [PHP-DEV] Segfault in 4.2.3RC2

2002-09-04 Thread derick
On Wed, 4 Sep 2002, Martin Jansen wrote: The script to reproduce the segfault can be found at http://www.martinjansen.com/php/segfault-4.2.3RC2.txt. If you need more information (backtrace etc.), just ask. That link gives a four oh four to me... Derick

Re: [PHP-DEV] Segfault in 4.2.3RC2

2002-09-04 Thread Vergoz Michael \(SYSDOOR\)
me too.. - Original Message - From: [EMAIL PROTECTED] To: Martin Jansen [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, September 04, 2002 9:37 PM Subject: Re: [PHP-DEV] Segfault in 4.2.3RC2 On Wed, 4 Sep 2002, Martin Jansen wrote: The script to reproduce the segfault can

[PHP-DEV] header(Content-type: text/...) with default_charset

2002-09-04 Thread Michael Mauch
Hi, header(Content-type: text/plain) or header(Content-type: text/xml) does not work as soon as a default_charset is enabled in php.ini. I reported that in http://bugs.php.net/bug.php?id=19098 a week ago, but nobody answered yet. This bug is still there in php-4.2.3RC2. If you use the mod_php

Re: [PHP-DEV] Segfault in 4.2.3RC2

2002-09-04 Thread Martin Jansen
On Mit Sep 04, 2002 at 09:3724 +0200, [EMAIL PROTECTED] wrote: On Wed, 4 Sep 2002, Martin Jansen wrote: The script to reproduce the segfault can be found at http://www.martinjansen.com/php/segfault-4.2.3RC2.txt. If you need more information (backtrace etc.), just ask. That link gives

Re: [PHP-DEV] Segfault in 4.2.3RC2

2002-09-04 Thread Martin Jansen
On Wed Sep 04, 2002 at 09:3027PM +0200, Martin Jansen wrote: Obviously PHP 4.2.3RC2 segfaults when using wordwrap() with the following configure options: If it helps you, attached you'll find the backtrace of the crash. -- - Martin Martin Jansen

Re[2]: [PHP-DEV] Segfault in 4.2.3RC2

2002-09-04 Thread Andrew Sitnikov
Hello , MM http://www.martinjansen.com/php/segfault-4.2.3RC2.txt works for me, MM and I can see the segfault with 4.2.3RC2, configured only with MM --enable-debug --disable-mbstring (on Linux). This crash for me to. PHP 4.2.3RC1, apache dso, linux Best regards, Andrew Sitnikov

RE: [PHP-DEV] GD broken ? compiler errors !

2002-09-04 Thread NAIK,ROSHAN (HP-Cupertino,ex1)
No doubt.. but then the stuff on the distribution didnt work in the first place. Thats why i hoped the cvs had a fix for those erros. I have had prior experinces wherein a few files in the distribtion sources wouldnt compile and I had to refresh them from the CVS. These were the errors in the

RE: [PHP-DEV] GD broken ? compiler errors !

2002-09-04 Thread Rasmus Lerdorf
Your problem is that you have multiple versions of gd on your system. PHP is picking up a gd.h somewhere on the standard include path and then trying to build against a different version. Clean up your system and it should work just fine. -Rasmus On Wed, 4 Sep 2002, NAIK,ROSHAN

RE: [PHP-DEV] GD broken ? compiler errors !

2002-09-04 Thread NAIK,ROSHAN (HP-Cupertino,ex1)
gd.h in the GD library (v 1.8.4) distribution (www.boutell.com/gd) declares ... typedef struct gdIOCtx { ..blah blah... } gdIOCtx; Then ext/gd/gd.c also goes ahead and declares ... #ifdef USE_GD_IOCTX .. .. typedef struct gdIOCtx; .. .. #endif Perhaps the guard USE_GD_IOCTX should have

RE: [PHP-DEV] GD broken ? compiler errors !

2002-09-04 Thread Rasmus Lerdorf
gd.h in the GD library (v 1.8.4) distribution (www.boutell.com/gd) declares ... typedef struct gdIOCtx { ..blah blah... } gdIOCtx; Then ext/gd/gd.c also goes ahead and declares ... #ifdef USE_GD_IOCTX .. .. typedef struct gdIOCtx; .. .. #endif Perhaps the guard USE_GD_IOCTX

[PHP-DEV] UTF8 support for PCRE missing from win32

2002-09-04 Thread Wez Furlong
I've just discovered (the hard way, unfortunately) that the win32 build of PHP does not support the u (UTF-8) modifier for pcre patterns. This is an inconsistency with our default build under Unix, which always has this turned on when using our bundled library. Adding this support to win32 is

RE: [PHP-DEV] GD broken ? compiler errors !

2002-09-04 Thread Jani Taskinen
On Wed, 4 Sep 2002, Rasmus Lerdorf wrote: Your problem is that you have multiple versions of gd on your system. PHP is picking up a gd.h somewhere on the standard include path and then trying to build against a different version. Clean up your system and it should work just fine. I don't

Re: [PHP-DEV] Segfault in 4.2.3RC2

2002-09-04 Thread Ilia A.
The problem described here occurs both in 4.2.3RC2 4.3.0-dev. The attached patch is against 4.3.0-dev (HEAD) and as far as my testing shows addresses the problem. The source of the segfault is a buffer overflow that results when estimated number of times the separator will be inserted is

[PHP-DEV] Loading PHP extension

2002-09-04 Thread Ravi
Hi I am developing a web site using PHP. We are using .so file for calling function built with c++. Its compiling properly but when putted in /usr/lib/php4 and run from PHP page it shows .. INVALID PHP Library I have PHP 4.0.0 In other server, we have PHP 4.1.2 in which its showing a