[PHP-DEV] Bug #16768: mysql_connect("localhost", ...) doesn't connect tolocalhost! (fwd)

2002-04-23 Thread Derick Rethans
Hey Zak, I think this is a nice thing for 4.2.1. I can reproduce it. I hope somebody can investigate this before friday (RC1 of 4.2.1 is scheduled then). Derick -- Forwarded message -- Date: 23 Apr 2002 19:50:29 - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Bug

[PHP-DEV] [sniper@php.net: Bug #12450 Updated: Segfaults if recode is loaded after mysql or imap]

2002-04-23 Thread Markus Fischer
Hi, am I blind/complete fool/ but where is it documented that loading those module causes crashes because of a symbol clash? I've been hit by the bug quite a few times alas I couldn't track it down (*grr*). - Markus -- Please always Cc to me when replying to me on

Re: [PHP-DEV] Error Linking Win32 Extensions

2002-04-23 Thread Markus Fischer
It may certainly be the problem. Why don't you compile php4ts.lib on your own too ?! First try this. On Tue, Apr 23, 2002 at 08:37:00PM -0400, Igal Raizman wrote : > Hello, > > I've set my VC++ 6.0 as I've been told to do here, and my extensions compile > without any problems, errors or

[PHP-DEV] Error Linking Win32 Extensions

2002-04-23 Thread Igal Raizman
Hello, I've set my VC++ 6.0 as I've been told to do here, and my extensions compile without any problems, errors or warnings. However, when it comes to linking I get the following error: php_test.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl zend_parse_parame

[PHP-DEV] odbc_fetch_row version 4.2

2002-04-23 Thread Ryan Jameson (USA)
The below line no longer seems to reset my result set in 4.2. odbc_fetch_row($rs,0); :-( i hope there's an easy fix for this one. <>< Ryan -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PATCH - improvements for imap_headerinfo()

2002-04-23 Thread Jani Taskinen
Please make a unified diff against the CVS HEAD (cvs diff -u). --Jani On Tue, 23 Apr 2002 [EMAIL PROTECTED] wrote: >I posted the wrong file to the last email... must find coffee or sleep :-) > >1573c1573 >< char dummy[2000], fulladdress[MAILTMPLEN]; >--- >> char *m

RE: [PHP-DEV] LDAP with version 4.2

2002-04-23 Thread Ryan Jameson (USA)
BINGO Thanks Markus...!!! I changed register_globals = off to register_globals = on And VUWALA!! <>< Ryan -Original Message- From: Markus Fischer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 4:14 PM To: Ryan Jameson (USA) Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DE

Re: [PHP-DEV] LDAP with version 4.2

2002-04-23 Thread Markus Fischer
This seems to be completely unrelated to ldap at a first glance. Have you actually installed the php.ini coming with 4.2.0 which DISABLES auto global variables like the HTTP_USER_AGENT is one? If so, either turn globals on for you or access it via the special hashes (I thi

[PHP-DEV] LDAP with version 4.2

2002-04-23 Thread Ryan Jameson (USA)
Hi, I just tried to upgrade to 4.2 and all my LDAP queries stopped working. My configuration is as follows: IIS5 PHP4.2 LDAP Support enabled RCS Version $Id: ldap.c,v 1.94.2.3 2001/12/01 14:17:43 venaas Exp $ Total Links 0/unlimited API Version 2004 Everything works great on 4.1.1 but when I

Re: [PHP-DEV] PATCH - improvements for imap_headerinfo()

2002-04-23 Thread adam.kauffman
I posted the wrong file to the last email... must find coffee or sleep :-) 1573c1573 < char dummy[2000], fulladdress[MAILTMPLEN]; --- > char *mystring, dummy[2000], fulladdress[MAILTMPLEN]; 1608c1608,1617 < en = mail_fetchenvelope(imap_le_struct->imap_stream, Z_LVAL_PP(msgno));

Re: [PHP-DEV] PATCH - improvements for imap_headerinfo()

2002-04-23 Thread adam.kauffman
Hmmm... does the list filter attachments? Anyways, sorry for sending twice. Hi all, After getting done with a pretty large PHP4 project, I have a patch I would like to submit for php_imap.c in the IMAP extension. Here is what this patch does: imap_headerinfo() really only needs envelope info

[PHP-DEV] PATCH - improvements for imap_headerinfo()

2002-04-23 Thread adam.kauffman
Hi all, After getting done with a pretty large PHP4 project, I have a patch I would like to submit for php_imap.c in the IMAP extension. Here is what this patch does: imap_headerinfo() really only needs envelope info whereas the current version fetches all headers and requires a BODY.PEEK. T

Re: [PHP-DEV] Re: 4.2.0 SID set login reversed, SID broken

2002-04-23 Thread Sascha Schumann
On Tue, 23 Apr 2002, [EMAIL PROTECTED] wrote: > Hello Sascha, php-dev, > > On Tue, 23 Apr 2002, Sascha Schumann wrote: > > > Here is the diff. It might be wise to post it on the > > downloads page (Derick, can you do that?). > > > > http://apache.org/~sascha/php-420-session-fix > > I

Re: [PHP-DEV] Re: 4.2.0 SID set login reversed, SID broken

2002-04-23 Thread derick
Hello Sascha, php-dev, On Tue, 23 Apr 2002, Sascha Schumann wrote: > Here is the diff. It might be wise to post it on the > downloads page (Derick, can you do that?). > > http://apache.org/~sascha/php-420-session-fix I think it's a better idea to wait a few days (until friday), th

RE: [PHP-DEV] Re: 4.2.0 SID set login reversed, SID broken

2002-04-23 Thread Robinson, Mike
Title: RE: [PHP-DEV] Re: 4.2.0 SID set login reversed, SID broken Is this not serious enough to warrant a 4.2.1, or 4.2.0PL1? Im asking with all due respect. Mike Robinson IT/Developer - Torstar Media Group Television Phone: 416.945.8786 Fax: 416.869.4566 Email: [EMAIL PROTECTED] > --

[PHP-DEV] Re: 4.2.0 SID set login reversed, SID broken

2002-04-23 Thread Sascha Schumann
Looks like 1.294 did not make it into the branch. Too bad. Here is the diff. It might be wise to post it on the downloads page (Derick, can you do that?). http://apache.org/~sascha/php-420-session-fix - Sascha Experience IRCG http:

[PHP-DEV] 4.2.0 SID set login reversed, SID broken

2002-04-23 Thread Michael Sisolak
The logic in 4.2.0 to decide when to set the SID constant (which should be only when the cookie hasn't been set) is reversed. In ext\session\session.c on line 933: /* define SID always, if the client did not send a cookie */ if (send_cookie) { smart_str var = {0};

Re: [PHP-DEV] PHP 4.2.0 Release Announcement

2002-04-23 Thread Brian Foddy
Aaron Bannert wrote: >>It didn't coredump for me on startup. >> > > Nor for I, and I've done quite a lot of testing on this thing. The > startup error has been identified (even though not reproduceable by me > for some reason) and I will supply a patch for that later today. There > is still anoth

[PHP-DEV] Re: RFI: Request for Interfaces

2002-04-23 Thread l0t3k
Wez, im +2^LONG_MAX-1 on the idea. the one possible addition is that in addition to resouces, i'd like objects to support interfaces as well (i havent given though to implementations as yet, though). -- PHP Development Mailing List To unsubscribe, visit: http://ww

Re: [PHP-DEV] creating files on a remote host

2002-04-23 Thread Markus Fischer
hi, You can transfer the file via ftp; you even don't need root access for this if the system is properly set up. There are plenty of docs and examples in the manual about the ftp extension. There shouldn't be a problem figuring out how it works. And please, next time

RE: [PHP-DEV] PHP 4.2.0 Release Announcement

2002-04-23 Thread Rose, Billy
Apache 2.0.35: ./configure --with-so --prefix=/opt/apache-2.0.35 PHP 4.2.0RC2: ./configure --with-apxs2=/opt/apache-2.0.35/bin/apxs --with-mysql=/usr RedHat 7.1 HP LPr Dual PIII-850 RedHat 7.2 HP LPr Dual PIII-550 Billy Rose [EMAIL PROTECTED] > -Original Message- > From: Aaron Banner

RE: [PHP-DEV] MINIT or RINIT

2002-04-23 Thread Sam Liddicott
OK, I just noticed class_entry->builtin_functions which I can probably use. Sam > -Original Message- > From: Sam Liddicott > Sent: 23 April 2002 16:19 > To: Sam Liddicott; 'Rasmus Lerdorf' > Cc: 'PHP Developers Mailing List' > Subject: RE: [PHP-DEV] MINIT or RINIT > > > It seems like

RE: [PHP-DEV] MINIT or RINIT

2002-04-23 Thread Sam Liddicott
It seems like if I use zend_register_internal_class then I can't make use of the .function table of my class entry because zend_register_internal class null's this out. Is there an entirely good reason for this? I want the internal class to have its functions registered seperatly with zend_hash_

Re: [PHP-DEV] PHP 4.2.0 Release Announcement

2002-04-23 Thread Aaron Bannert
On Tue, Apr 23, 2002 at 06:20:18AM -0500, Rose, Billy wrote: > I have Apache 2.0.25 with PHP 4.2.0RC2 running in production now. Been > running since it was released. Can you please describe your architecture (platform, os rev, etc...) and tell us what configure parameters you gave to both apache

Re: [PHP-DEV] PHP 4.2.0 Release Announcement

2002-04-23 Thread Aaron Bannert
> It didn't coredump for me on startup. Nor for I, and I've done quite a lot of testing on this thing. The startup error has been identified (even though not reproduceable by me for some reason) and I will supply a patch for that later today. There is still another bug (also nonreproduceable by m

[PHP-DEV] PHP museum

2002-04-23 Thread Edin Kadribasic
Thanks to Mark Kronsbein there is a PHP museum containing all version of PHP we could find. If you have some release that Mark et al didn't find drop me a note. http://ftp.proventum.net/pub/php/ Edin -- PHP Development Mailing List To unsubscribe, visit: http://www.php.

[PHP-DEV] creating files on a remote host

2002-04-23 Thread Dave
Is there a way to create a file to a remote host. IE: I have a php script on www.somedomain.com for example - and I want to fill out a form on this php script and make it create a file called "index.html" on say www.someotherdomain.com for example. I have admin and root access to BOTH domains.

RE: [PHP-DEV] MINIT or RINIT

2002-04-23 Thread Sam Liddicott
> -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > Sent: 23 April 2002 11:30 > To: Sam Liddicott > Cc: PHP Developers Mailing List > Subject: Re: [PHP-DEV] MINIT or RINIT > > > Well, where are you storing them? Make sure they are not in > memory that > gets clea

Re: [PHP-DEV] PHP 4.2.0 Release Announcement

2002-04-23 Thread Mats Lindh
- [EMAIL PROTECTED]% (Brian Foddy): > So they download both and start building. What do they get? > Core dump. Usually before people will start opening trouble [cut] > with these two latest releases. "Experimental, not for production" > just doesn't cut it. Not when we KNOW there is a definat

RE: [PHP-DEV] MINIT or RINIT

2002-04-23 Thread Sam Liddicott
> -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > Sent: 23 April 2002 11:30 > To: Sam Liddicott > Cc: PHP Developers Mailing List > Subject: Re: [PHP-DEV] MINIT or RINIT > > > Well, where are you storing them? Make sure they are not in > memory that > gets clea

[PHP-DEV] Re: zend_hash_find() (bug in session.c?)

2002-04-23 Thread Yasuo Ohgaki
Scl wrote: > Hello, > I have just upgraded to PHP 4.2.0 and straight away one of our custom PHP > extenstions reported an error (couldn't get SCRIPT_NAME): > > Scripthash Security Extension - http://www.scl.co.uk/scripthash/ > > The reason for this seems to be that a global variable I need

Re: [PHP-DEV] PHP 4.2.0 Release Announcement

2002-04-23 Thread Zeev Suraski
At 05:30 23/04/2002, Brian Foddy wrote: >Experimental kinda implies that its at least usuable and might be >fun to play with. Not recommending for production is a long ways >from saying ohh, I guess it will coredump on startup... Experimental means experimental, and that it may very well crash o

Re: [PHP-DEV] Major Bug in multiple MySQL Connections?

2002-04-23 Thread Zeev Suraski
If you're tying two pieces of software together (which is apparently what he's doing), the reuse of the link can indeed be annoying, and it may make sense to have multiple links with the same credentials. Not a common case, but it's possible. Zeev At 15:42 22/04/2002, Rasmus Lerdorf wrote: >

Re: [PHP-DEV] MINIT or RINIT

2002-04-23 Thread Rasmus Lerdorf
Well, where are you storing them? Make sure they are not in memory that gets cleaned on a per-request basis. ie. do your own malloc() in MINIT and free() in MSHUTDOWN. -Rasmus On Tue, 23 Apr 2002, Sam Liddicott wrote: > Swig generated code registers some overloaded classes to wrap C classes.

[PHP-DEV] zend_hash_find() (bug in session.c?)

2002-04-23 Thread SCL
Hello, I have just upgraded to PHP 4.2.0 and straight away one of our custom PHP extenstions reported an error (couldn't get SCRIPT_NAME): Scripthash Security Extension - http://www.scl.co.uk/scripthash/ The reason for this seems to be that a global variable I need SCRIPT_NAME has been m

[PHP-DEV] MINIT or RINIT

2002-04-23 Thread Sam Liddicott
Swig generated code registers some overloaded classes to wrap C classes. I think it should do this in PHP_MINIT but when I do it here they are only available as registered for the first apache request. If I register them in PHP_RINIT then they are always available. Why would this be so? Which

RE: [PHP-DEV] PHP 4.2.0 Release Announcement

2002-04-23 Thread Rose, Billy
Correction, 2.0.35 (typo) Billy Rose [EMAIL PROTECTED] > -Original Message- > From: Rose, Billy [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 6:20 AM > To: 'Rasmus Lerdorf'; Brian Foddy > Cc: PHP Developers Mailing List > Subject: RE: [PHP-DEV] PHP 4.2.0 Release Announcemen

RE: [PHP-DEV] PHP 4.2.0 Release Announcement

2002-04-23 Thread Rose, Billy
I have Apache 2.0.25 with PHP 4.2.0RC2 running in production now. Been running since it was released. Billy Rose [EMAIL PROTECTED] > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 5:06 AM > To: Brian Foddy > Cc: PHP Developers Mailin

Re: [PHP-DEV] PHP 4.2.0 Release Announcement

2002-04-23 Thread Rasmus Lerdorf
You make it sound like it will core dump immediately for everyone. That's obviously not the case. It does work for most people. Well, for some anyway. Works fine on my test server, for example. On Tue, 23 Apr 2002, Brian Foddy wrote: > So they download both and start building. What do they g

Re: [PHP-DEV] PHP 4.2.0 Release Announcement

2002-04-23 Thread Dan Hardiker
I disagree whole heartedly. It doesnt look bad at all. >From the public angle, it looks like the PHP Group are holding back on Apache 2 support until they can endorse its stability - but giving the PHP developers access to current research into the integration. If you want to play with with Apac

[PHP-DEV] NOTICE: Wise volunteer needed for PHP module review

2002-04-23 Thread Sam Liddicott
I'm working with Richard Palmer on the php module of SWIG (http://www.swig.org) Swig is used to automatically write php, perl, python, guile, java, ruby, etc etc modules to link 3rd part libraries into these scripting systems. This means if I have a fancy library "libfoo" and I want to use it fo

Re: [PHP-DEV] Get IP of the visitator

2002-04-23 Thread Markus Fischer
Hi, I suggest looking at the output of $_SERVER which contains something like REMOTE_ADDR and may also contain additional headers if your visitor uses a proxy. Please ask further question on [EMAIL PROTECTED] as this is the _wrong_ list to ask such questions, thx. -

[PHP-DEV] Get IP of the visitator

2002-04-23 Thread Cosmin
Hello, How can I take the IP of the visitator of my php page? not gethostbyname... I need the ip of any visitator not for the specified visitator. Thank you Cosmin -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP 4.2.0 Release Announcement

2002-04-23 Thread Tom Howell-Cintron
On Tue, 23 Apr 2002, Brian Foddy wrote: > That's a very frustrating scenario that will be occuring countless > times probably right now. Why does PHP want to intentionally > frustrate and turn off its own user community? What does > that say about the PHP testing process and commitment to use