Re: [PHP-DEV] Loading PHP extension

2002-09-04 Thread Markus Fischer
On Wed, Sep 04, 2002 at 08:39:58PM +0530, Ravi wrote : > 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 >

[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 diif

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 les

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

[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] ZendEngine2 availability

2002-09-04 Thread Tyson Lloyd Thwaites
Oh, ok. Sigh! I'll stick with the old engine then. Thanks Tyson Lloyd Thwaites Technical Lead I.T&e Limited > -Original Message- > From: Dan Hardiker [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 4 September 2002 6:36 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP

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

2002-09-04 Thread NAIK,ROSHAN (HP-Cupertino,ex1)
Looks like the problem was elsewhere. there was the correct version of gd (and the only one) etc. The problem was in the configure scipt generated by phpize. Somehow there were lots of occurences of "-R" instead of "-L" option in there. Thus the needed libraries wouldnt get linked to the "mini t

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 guar

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
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 (HP-Cupertino,e

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 o

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

2002-09-04 Thread Andrew Sitnikov
Hello , MM> 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] 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: [PHP-DEV] Segfault in 4.2.3RC2

2002-09-04 Thread Michael Mauch
Vergoz Michael \ <[EMAIL PROTECTED]> wrote: > me too.. Maybe your mail/news reader has a problem with the trailing dot, maybe Martin fixed it now. works for me, and I can see the segfault with 4.2.3RC2, configured only with --enable-debug -

[PHP-DEV] multiple keyword text box

2002-09-04 Thread Jason
Hi, What is the necessary code to return a recordset from a single text box with more than one keyword in it (like most search engines do)? Thanks -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Passing Session ID ... Please HELP

2002-09-04 Thread Ali Al-Saffar
Hi there, I have problem with passing the session ID, although session.use_trans_sid is set to 1 but the SID isn't inserted automaticaly in the URL if the cookies are disabled in my browser! It should works as its clear mentioned at http://www.php.net/manual/en/ref.session.php These are my t

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 li

[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 a week ago, but nobody answered yet. This bug is still there in php-4.2.3RC2. If you use the mod

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 seg

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 ---

[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' \ '--with-pgsql=/usr/local/pgsql/

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, Se

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 shoul

Re: [PHP-DEV] PHP 4.2.3 release.

2002-09-04 Thread Mike Hall
Would the 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 Subject: Re: [PHP-DEV] PHP 4

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

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 >

[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 recomp

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: http://wishlist.sebastian-be

[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-berg

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.

[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: "; } output(); output(); ?> The variable $line is calculated once as the start of the script (with $line always being "3") where as the desired ef

[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

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 bette

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 messa

[PHP-DEV] FOR ALAN: bcompiler

2002-09-04 Thread m . musumeci
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? bye Massimo -- PHP Development Mailing List

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

2002-09-04 Thread Dejan Markic
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 PROTECTED]">news:[EMAIL PROTECTED]... | Hi All, | | Im looking at develo

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

2002-09-04 Thread Dan Hardiker
Hi All, Im looking at developing a couple of functions which could retrieve the current line number, and filename where ever they are put. By file name, I mean the actual file name, not the parent (eg: the file that included this one)... very similar to what would be outputted in a syntax error o

[PHP-DEV] [PATCH] Disable ext/overload in ZendEngine 2

2002-09-04 Thread Sebastian Bergmann
Thanks to Stas, the functionality offered by ext/overload is now seamlessly integrated into the Zend Engine 2. The attached patch excludes ext/overload from Zend Engine 2 builds. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I hel

Re: [PHP-DEV] Re: #18623 [Ver]: touch, fopen, fwrite don't work

2002-09-04 Thread Roman Neuhauser
# Melvyn Sopacua <[EMAIL PROTECTED]> / 2002-07-31 00:10:30 + (+0200): > who could comment on the randomness of allowed/dissallowed > attachments, please? i'd bet text/plain (maybe text/*) gets through, the rest is stripped. Eudora (which you seem to use) IIRC tags the attachments

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 on

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

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

[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

[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 a

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 month

[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 acinclude.m4..

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 E

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 (h

[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 To unsubscribe, visit: http://www.php.net/unsub.php