Re: [PHP-DEV] Php LDAP and LDIF format

2002-11-10 Thread Stig Venaas
On Thu, Oct 24, 2002 at 06:18:58PM +0200, Alban Médici wrote: I need to realize a Php (non web mode) API which will generate some text file in the LDIF format. ( easy to do) Then with the same API i would like to charge the text file into the db. Is there any Php function exist to command

[PHP-DEV] Re: mb_convert_case (Was: Re: #19257 [Bgs]: strtolower strtoupper does not work for UTF-8 strings)

2002-10-09 Thread Stig Venaas
On Thu, Sep 26, 2002 at 02:10:04AM +0100, Wez Furlong wrote: All: I've just committed a php-style version of the ucdata package that Stig directed me to. Great! Stig: Rather than generate binary data files at configure time, based on a bundled UnicodeData.txt file which is quite large,

[PHP-DEV] Re: #19257 [Bgs]: strtolower strtoupper does not work for UTF-8 strings

2002-09-25 Thread Stig Venaas
On Fri, Sep 13, 2002 at 11:55:50AM +0100, Wez Furlong wrote: Where mapping is one of upper, lower or title (since unicode knows about title case). This function would then be able to internally convert to unicode, apply the appropriate transformation and then convert back to the original

Re: [PHP-DEV] Re: [PHP-QA] array_unique broken?

2002-09-03 Thread Stig Venaas
On Tue, Sep 03, 2002 at 11:04:55AM +0300, Andrey Hristov wrote: Hi, I am not too much in array_unique() but played with array_diff() for a week to implement array_diff_assoc() with no success so far but atm I am dreaming the code of array_diff. I saw that most of the code of array_diff() is

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] array_unique broken?

2002-09-03 Thread Stig Venaas
On Tue, Sep 03, 2002 at 11:21:12AM +0300, Andrey Hristov wrote: So the docs are right? Note that keys are preserved. array_unique() sorts the values treated as string at first, then will keep the first key encountered for every value, and ignore all following keys. It does not mean that the

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] array_unique broken?

2002-09-03 Thread Stig Venaas
On Tue, Sep 03, 2002 at 11:47:58AM +0300, Andrey Hristov wrote: IMO that's good idea to have keys ordered too. All my nightmares with array_diff() came from that the key order is undefined and I tried all kind of tricks (traversing like in a marathon forward and backwards to find are there

Re: [PHP-DEV] array_diff not working with last element different

2002-08-27 Thread Stig Venaas
On Tue, Aug 27, 2002 at 06:39:57AM -0700, Brad LaFountain wrote: ? $ar = array(b = 1, blah = 1); $a1 = array(b = 1, blah = 2); var_dump(array_diff($ar, $a1)); ? array(0) { } I guess this may not be clear from documentation. array_diff() works with values. So it will return all values from

Re: [PHP-DEV] array_diff not working with last element different

2002-08-27 Thread Stig Venaas
On Tue, Aug 27, 2002 at 05:04:41PM +0300, Andrey Hristov wrote: so, is there need of array_adiff()? Right, it should then work on ordered pairs, right? Only remove (key, value) pair from 1st array if it exists in any of the others? Same goes for array_intersect... I'm not sure if there is that

Re: [PHP-DEV] UTF-8 encoding

2002-08-25 Thread Stig Venaas
On Sun, Aug 25, 2002 at 06:28:44PM +0100, Wez Furlong wrote: Hi Stefan, I borrowed that code from the mbstring extension. Either I misinterpreted the code, or mbstring also has it's utf-8 decoder incorrect. --Wez. On 08/25/02, Stefan Esser [EMAIL PROTECTED] wrote: Hello, html.c

Re: [PHP-DEV] [Patch] LDAP Error reporting for 4.2.1

2002-06-26 Thread Stig Venaas
On Tue, Jun 25, 2002 at 08:13:29PM -0400, Kristofer T. Karas wrote: I'm using OpenLDAP 1.x in PHP 4.2.1, and was dismayed that $x = ldap_add(...); dumps verbiage to stderr if the add fails, despite the . Figured it'd be faster to fix it than to whine and complain. In fixing, I found

Re: [PHP-DEV] getting images from LDAP

2002-06-24 Thread Stig Venaas
Hi On Mon, Jun 24, 2002 at 04:05:19PM -0400, Jennifer Telisky wrote: Only thing I can think of, is to somehow store $data out to a file data.jpg, then use this file as the img src=data.jpg. Although, I can't seem to find a way to do this either. Write one script that displays the ASCII

[PHP-DEV] On vacation

2002-06-08 Thread Stig Venaas
I'm on vacation until June 16th and will not read any mail until I return. Your mail concerning Assigned PHP 4 bugs reminder will be read when I'm back. Stig -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] On vacation

2002-05-25 Thread Stig Venaas
I'm on vacation until June 16th and will not read any mail until I return. Your mail concerning Assigned PHP 4 bugs reminder will be read when I'm back. PS See http://www.venaas.no/whereami/ for my current location. Stig -- PHP Development Mailing List http://www.php.net/ To unsubscribe,

[PHP-DEV] On vacation

2002-05-11 Thread Stig Venaas
I'm on vacation until June 16th and will not read any mail until I return. Your mail concerning Assigned PHP 4 bugs reminder will be read when I'm back. PS See http://www.venaas.no/whereami/ for my current location. Stig -- PHP Development Mailing List http://www.php.net/ To unsubscribe,

Re: [PHP-DEV] resource problem, advice wanted

2002-05-04 Thread Stig Venaas
On Fri, May 03, 2002 at 03:34:46PM +0300, Zeev Suraski wrote: If ldap_first_entry() relies on the resource that is passed onto it, then it should add a reference count to it, using zend_list_addref(). The resource ldap_first_entry returns should be responsible for this reference, and its

[PHP-DEV] resource problem, advice wanted

2002-05-01 Thread Stig Venaas
This is a bit involved, I'll try to explain. I'm trying to fix a problem in the LDAP extension, but not sure how best to do it. The issue is that code like $e = ldap_first_entry($ds, ldap_read($ds,$dn,objectClass=*)); $a = ldap_get_attributes($ds, $e); crashes. What happens is that

Re: [PHP-DEV] RE: [PHP-CVS] cvs: php4 /ext/ftp ftp.c ftp.h

2002-02-10 Thread Stig Venaas
On Thu, Feb 07, 2002 at 11:21:26PM +0100, Stig Venaas wrote: On Thu, Feb 07, 2002 at 12:42:29AM +0100, marc wrote: I just left it with the new sizeof, but there may be side-effects? It's okay as long as you don't have IPv6, 95/98 doesn't. I've now committed a proper fix with no side

[PHP-DEV] Bug #15389 Updated: slow ldap connect

2002-02-07 Thread venaas
ID: 15389 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: LDAP related Operating System: w2k advanced server PHP Version: 4.1.1 New Comment: Have you tried to connect to the LDAP server with something

Re: [PHP-DEV] RE: [PHP-CVS] cvs: php4 /ext/ftp ftp.c ftp.h

2002-02-06 Thread Stig Venaas
On Tue, Feb 05, 2002 at 11:44:18PM +0100, marc wrote: Thanks, this helps a lot (I think). Does it work if you in line 1053 or so, replace size = sizeof(php_sockaddr_storage); with size = sizeof(struct sockaddr_in); I tried sizeof(ftp-pasvaddr), but no effect... (same errormsg) Could

Re: [PHP-DEV] RE: [PHP-CVS] cvs: php4 /ext/ftp ftp.c ftp.h

2002-02-06 Thread Stig Venaas
On Wed, Feb 06, 2002 at 10:03:50AM +0100, Marc Boeren wrote: Thanks, this helps a lot (I think). Does it work if you in line 1053 or so, replace size = sizeof(php_sockaddr_storage); with size = sizeof(struct sockaddr_in); OK, this makes it work... on Win98 at least (and it still

Re: [PHP-DEV] RE: [PHP-CVS] cvs: php4 /ext/ftp ftp.c ftp.h

2002-02-05 Thread Stig Venaas
Hi On Tue, Feb 05, 2002 at 05:55:45PM +0100, Marc Boeren wrote: Hi Stig (and others, Wez for instance), The patch below seems to have broken the ftp_get function (I used ftp_get($conn_id, $local_file, $remote_file, FTP_BINARY)) in Win95 and Win98, it now displays a warning:

[PHP-DEV] zend_qsort() problems

2002-01-16 Thread Stig Venaas
_zend_qsort_swap() is broken, it only works when siz is sizeof(int) or sizeof(char). The following patch fixes it: +++ Zend/zend_qsort.c Wed Jan 16 22:46:11 2002 @@ -32,23 +32,24 @@ int t_i; chart_c; - for (i = sizeof(int); i = siz; i +=

[PHP-DEV] Bug #14805 Updated: array_unique works opposed to the manual

2002-01-16 Thread venaas
ID: 14805 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Assigned Bug Type: Arrays related Operating System: MS Windows 98 PWS 4.0 PHP Version: 4.1.1 Old Assigned To: Assigned To: venaas New Comment: array_unique() uses qsort internally. Provided qsort doesn't

Re: [PHP-DEV] Using PHP in my own apps

2001-12-31 Thread Stig Venaas
On Mon, Dec 31, 2001 at 07:14:32PM +0100, Daniel Lorch wrote: Hi, I was wondering how i could use PHP to interpret scripts for my own apps using php4ts.dll ? the best way to start is not the PHP sources. have a look at apaches DSO support (or the windows counterpart - the DLL

[PHP-DEV] Bug #12223 Updated: ldap rebind procedure implementation

2001-12-29 Thread venaas
ID: 12223 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Analyzed Bug Type: LDAP related Operating System: any PHP Version: 4.0.6 Old Assigned To: Assigned To: venaas New Comment: There is now an experimental implementation. Please test it. It currently requires you

Re: [PHP-DEV] Re: is_array_multidimensional

2001-12-29 Thread Stig Venaas
On Sat, Dec 29, 2001 at 11:13:11PM +0200, Andi Gutmans wrote: I agree with Jim. Arrays can contain things. Things can also be other arrays. You can have an array which contains two other arrays and four integers. I don't think we should add these functions because they are wrong

Re: [PHP-DEV] Development question: DNS lookups

2001-12-28 Thread Stig Venaas
On Fri, Dec 28, 2001 at 04:30:33PM +0100, Edwin Boersma wrote: Hi there, My provider stopped the DNS service on the server that runs mySQL and PHP. By result, the function GetHostByAddr() is useless. Can I tell PHP to use another DNS server to lookup the IP-address? No PHP uses whatever is

Re: [PHP-DEV] Development question: DNS lookups

2001-12-28 Thread Stig Venaas
On Fri, Dec 28, 2001 at 05:00:20PM +0100, Edwin Boersma wrote: At 16:51 28-12-01, you wrote: On Fri, Dec 28, 2001 at 04:30:33PM +0100, Edwin Boersma wrote: Hi there, My provider stopped the DNS service on the server that runs mySQL and PHP. By result, the function GetHostByAddr() is

[PHP-DEV] Bug #14725 Updated: ldap_connect skips over SSL servers specifed in the form ldaps://hostname/

2001-12-27 Thread venaas
ID: 14725 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: LDAP related Operating System: SunOS 5.7 SPARC 106541-17 PHP Version: 4.0.6 New Comment: There are several ways to use ldap_connect(). With all LDAP APIs (I think), you should be able

[PHP-DEV] Bug #14693 Updated: Problem with searchin single signed LDAP base name dc=something

2001-12-26 Thread venaas
ID: 14693 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: LDAP related Operating System: Sun Solaris 2.7 (32 bit) PHP Version: 4.1.0 New Comment: You are right, there is one problem with PHP's ldap_search(). This is a bit hard to explain, but when you

Re: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-26 Thread Stig Venaas
On Wed, Dec 26, 2001 at 01:10:47PM +0100, [EMAIL PROTECTED] wrote: On Wed, 26 Dec 2001, Markus Fischer wrote: On Wed, Dec 26, 2001 at 02:22:02AM -, Dominik Roettsches wrote : Another suggestion is to replace the wordwrap code by the algorithm of Knuth. This would break BC

[PHP-DEV] two of the LDAP functions are equivalent, alias and deprecate?

2001-12-25 Thread Stig Venaas
The LDAP extension has two functions that are exactly the same, namely ldap_modify() and ldap_mod_replace(). I think we should start thinking of getting rid of one of them. We could start with making one of them an alias for the other, and state that the alias is deprecated in the manual. The

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /main rfc1867.c

2001-12-25 Thread Stig Venaas
On Thu, Dec 13, 2001 at 09:23:26PM +0100, Sterling Hughes wrote: Hrrm, yeah, I'm thinking that the test suite should contain a simple webserver which we can run PHP with (as a CGI even), it would make the test suite more robust as there are a lot of features that rely on the

[PHP-DEV] Bug #14693 Updated: Problem with searchin single signed LDAP base name dc=something

2001-12-25 Thread venaas
ID: 14693 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: LDAP related Operating System: Sun Solaris 2.7 (32 bit) PHP Version: 4.1.0 New Comment: The problem has to do with continuation reference and which LDAP version you use. Most LDAP libs default

[PHP-DEV] Bug #14618 Updated: Undefined Symbol: ldap_parse_reference

2001-12-23 Thread venaas
ID: 14618 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: LDAP related Operating System: Solaris 2.8 PHP Version: 4.1.0 Old Assigned To: Assigned To: venaas New Comment: Yes, this is certainly a SUN bug. LDAP_API_VERSION 2004 should mean version 4

[PHP-DEV] Bug #14355 Updated: ldap_connect works intermittantly

2001-12-23 Thread venaas
ID: 14355 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: LDAP related Operating System: Solaris 2.6 (SPARC) PHP Version: 4.0.6 New Comment: I'm sorry, I don't have any solutions for you. I guess no one else does either. First of all, have you

[PHP-DEV] Bug #14408 Updated: compiled failed for target ldap.lo

2001-12-23 Thread venaas
ID: 14408 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: LDAP related Operating System: Solaris 8 PHP Version: php4-200112040900 New Comment: Sorry, my fault. I added some rebind_proc code which is highly experimental. I thought my check would only

Re: [PHP-DEV] php and ldap ?

2001-12-23 Thread Stig Venaas
Hi Is this still a problem? I don't really know how to solve it, but it sounds like LDAP was found when building, but that the PHP binary was not linked with the LDAP library. Near the end when libphp4.so is built you should see several libs specified, you might try to see if LDAP is listed,

Re: [PHP-DEV] Re: [NEW EXTENSTION]: templates

2001-12-05 Thread Stig Venaas
On Wed, Dec 05, 2001 at 02:09:22PM -0500, Robinson, Mike wrote: You submitted a proposal. There was discussion. The concensus is no, it won't go into the php source. But there are probably still a lot of people that would like to use it. I think it's good that people get to know about it.

Re: [PHP-DEV] PHP can't compare...

2001-12-05 Thread Stig Venaas
On Wed, Dec 05, 2001 at 12:09:33PM +0200, Zeev Suraski wrote: There's no clean 3.55, there simply isn't. It's just how computers work. The only way to do what you're asking for is to switch to a whole different string-based representation, which is going to slow things down very

Re: [PHP-DEV] Zend Hash Question

2001-12-04 Thread Stig Venaas
On Wed, Dec 05, 2001 at 01:35:26AM -0500, l0t3k wrote: something that has confused me for a second is the use of HashTables to store a user defined type. the constructor is fine, its just insertion and querying that's mildly confusing. for instance, it seems as if zend_hash_add takes

Re: [PHP-DEV] PHP can't compare...

2001-12-04 Thread Stig Venaas
On Tue, Dec 04, 2001 at 05:38:10PM -0500, Matthew Hagerty wrote: I'm going to stop ranting and go check PHP's source, make some tests in C and such. But with this type of number representation, PHP becomes inaccurate in all but the most simple use of numbers. I find this surprising as

Re: [PHP-DEV] Re: [PHP-QA] 4.1.0RC5

2001-12-03 Thread Stig Venaas
On Mon, Dec 03, 2001 at 04:31:40PM +0100, Alexander Wirtz wrote: I'd love to test the LDAP, but I haven't got a server at hand :-/ Great, you can test with ldap.uninett.no (base dc=uninett,dc=no) and ldap.openldap.org (base dc=OpenLDAP,dc=org). There are several public servers out there. You

[PHP-DEV] Bug #13437 Updated: PHP cores on exit; memory deallocation problem?

2001-12-03 Thread venaas
ID: 13437 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Reproducible crash Operating System: Linux Solaris PHP Version: 4.1RC5 New Comment: I've seen this as well. The time limit you set is removed when the script finishes but before the memory is cleaned up. What I

[PHP-DEV] Bug #14312 Updated: LDAP modifyTimestamp et al.

2001-12-02 Thread venaas
ID: 14312 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.0.6 New Comment: Works quite well for me, tested with OpenLDAP 2 libs, Linux, Apache and 4.0.6. In ldap_search you must specify

Re: [PHP-DEV] ldap_first_attribute() and ldap_next_attribute() broken in 4.1.0 RCs

2001-12-01 Thread Stig Venaas
On Sat, Dec 01, 2001 at 06:18:14AM +0200, Zeev Suraski wrote: If it was broken for 6 months, it was broken in 4.0.6. It will be broken in 4.1.0, it's not grounds for breaking a final RC... No, it wasn't broken in 4.0.6. 4.0.6 was based on ldap.c 1.82 from February, this happened in 1.85 on

Re: [PHP-DEV] Re: [PHP-QA] 4.1.0RC4

2001-12-01 Thread Stig Venaas
On Fri, Nov 30, 2001 at 10:25:14PM -0700, Zak Greant wrote: On November 30, 2001 09:12 pm, Zeev Suraski wrote: http://www.php.net/~zeev/php-4.1.0RC4.tar.gz The plan is to release Monday, unless a real earth quaker is found... Builds and runs on SuSE 7.1 as CGI See

Re: [PHP-DEV] ldap_first_attribute() and ldap_next_attribute() broken in 4.1.0 RCs

2001-12-01 Thread Stig Venaas
On Sat, Dec 01, 2001 at 03:00:44PM +0200, Zeev Suraski wrote: This is so unbelievable. It looks as if there's a higher force putting all its weight to prevent 4.1.0 from ever coming out. Yes, I really wish I noticed this before. Did you MFH the fix? I've now committed it to the PHP_4_0_7

[PHP-DEV] ldap_first_attribute() and ldap_next_attribute() broken in 4.1.0 RCs

2001-11-30 Thread Stig Venaas
message from Stig Venaas [EMAIL PROTECTED] - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] From: Stig Venaas [EMAIL

[PHP-DEV] Bug #14274 Updated: httpd process severely leaks memory for large LDAP queries

2001-11-29 Thread venaas
ID: 14274 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: LDAP related Operating System: Linux 7.2 PHP Version: 4.0.6 New Comment: CVS and 4.1.0 should be okay. Please test and reopen if I'm wrong Previous Comments

[PHP-DEV] Bug #14258 Updated: Date Timezone is not correct

2001-11-27 Thread venaas
ID: 14258 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Mail related Operating System: Window 2000 PHP Version: 4.0.6 New Comment: I'm not able to test on windows myself, but I've got some alternate code for computing the timezone in the mail() function if anyone

Re: [PHP-DEV] Patch: Nested comments

2001-11-27 Thread Stig Venaas
On Tue, Nov 27, 2001 at 10:16:15PM +0200, Andi Gutmans wrote: It's not like I don't want to keep BC as much as possible for ZE2 too. Sure that for important stuff BC is less important but I don't see nested comments being very important to ppl. This is one of the only times it has come up

Re: [PHP-DEV] status of openssl fn in php 4.1

2001-11-24 Thread Stig Venaas
On Fri, Nov 23, 2001 at 10:19:17AM +0100, Pavol Cvengros wrote: Hi all. please I need to know the status (functionality) of openssl support in next version of php ( php-4.1 ??? ) (because I work on new free national CA) The following functions are implemented:

[PHP-DEV] maybe serious error in RC3 memory manager

2001-11-24 Thread Stig Venaas
Hi I don't know for sure yet, but wanted to warn you. I'm digging into this, but right now I have a script that runs for a long time after the last line in the script is executed, and then it segfaults with: bFatal error/b: Maximum execution time of 30 seconds exceeded in bUnknown/b on line

[PHP-DEV] Bug #9793 Updated: ldap_mod_add with bad params cause Segfault

2001-11-24 Thread venaas
ID: 9793 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Analyzed Status: Closed Bug Type: LDAP related Operating System: Linux PHP Version: 4.0.4pl1 New Comment: I'm pretty sure I've fixed this in CVS a couple of weeks or so ago, you are now required to use 0, 1, ... Please try

[PHP-DEV] Bug #9025 Updated: ldap compare functions

2001-11-24 Thread venaas
ID: 9025 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Feature/Change Request Operating System: any PHP Version: 4.0.4pl1 New Comment: The problem is not in PHP, PHP uses the standard LDAP compare operation and you have not given access

Re: [PHP-DEV] maybe serious error in RC3 memory manager

2001-11-24 Thread Stig Venaas
Bug #13437 seems to be the same problem. I think it might be solved like I said in my previous mail. Stig -- 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,

[PHP-DEV] Bug #3248 Updated: mail function putting wrong timezone info in message header?

2001-11-22 Thread venaas
ID: 3248 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Analyzed Bug Type: Mail related Operating System: Windows NT PHP Version: 4.0 Beta 3 Assigned To: hholzgra New Comment: Not sure if it helps, but I have a nearly untested patch that computes the offset using the diff between

[PHP-DEV] Bug #6417 Updated: Incorrect behaviour with references and arrays

2001-11-22 Thread venaas
ID: 6417 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Analyzed Bug Type: Scripting Engine problem Operating System: Linux RedHat 6.2 PHP Version: 4.0.6-dev New Comment: I would like to see this fixed, it's a serious bug IMO. Hope this serves as a reminder to someone

Re: [PHP-DEV] LDAP schema support

2001-11-20 Thread Stig Venaas
On Tue, Nov 20, 2001 at 07:01:08PM +0300, Kachalov Anton wrote: Good day hi 2 all! I want to know, will you (LDAP developers) add schema support into ldap module ? Maybe. I'm not quite sure what you are thinking of. Could you tell me what you have in mind? BTW I've started studying Russian

[PHP-DEV] Bug #14148 Updated: utf8_encode seems to return a not-null-terminated string

2001-11-20 Thread venaas
ID: 14148 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *XML functions Operating System: Solaris 2.7 PHP Version: 4.0.6 New Comment: You're right, this was fixed in CVS in July. You might try 4.1 when it is released, or get the RC from http://www.php.net/~zeev/php

[PHP-DEV] Bug #14148 Updated: utf8_encode seems to return a not-null-terminated string

2001-11-20 Thread venaas
ID: 14148 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *XML functions Operating System: Solaris 2.7 PHP Version: 4.0.6 New Comment: You're right, this was fixed in CVS in July. You might try 4.1 when it is released, or get the RC from http://www.php.net/~zeev/php

[PHP-DEV] Bug #14148 Updated: utf8_encode seems to return a not-null-terminated string

2001-11-20 Thread venaas
ID: 14148 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: *XML functions Operating System: Solaris 2.7 PHP Version: 4.0.6 Previous Comments: [2001-11-20 11:41:12] [EMAIL

[PHP-DEV] bug report update submitted twice

2001-11-20 Thread Stig Venaas
I updated bug #14148. It was submitted twice (the 3rd was because I forgot to change status). When I submitted, I got an error from Mozilla that the post data was expired or something, and then I guess it posted the data another time. Not sure where the problem lies. Stig -- PHP Development

[PHP-DEV] Bug #12740 Updated: LDAP modify functions do not handle special characters

2001-11-12 Thread venaas
ID: 12740 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: LDAP related Operating System: Linux RH 7.1 PHP Version: 4.0.5 New Comment: The problem turned out to be that the syntax for the attribute was IA5, thus not allowing non-ASCII. We should

[PHP-DEV] Bug #8714 Updated: Adding LDAP entries drops credentials if update is referred

2001-11-12 Thread venaas
ID: 8714 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: LDAP related Operating System: Linux 2.2.18 PHP Version: 4.0.4pl1 New Comment: This is correct behavior. It is done in the LDAP library, it's not something PHP can fix. There are however two

[PHP-DEV] Bug #12231 Updated: about ldap_get_values_len

2001-11-12 Thread venaas
ID: 12231 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: LDAP related Operating System: redhat7.0 PHP Version: 4.0.6 New Comment: This is precisely why ldap_get_values_len() exists. I use the following code to extract pictures: ds=ldap_connect

[PHP-DEV] Bug #11389 Updated: array_walk causes Apache to crash

2001-11-12 Thread venaas
ID: 11389 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Critical Bug Type: Arrays related Operating System: W98 PHP Version: 4.0.6 New Comment: Yes, what happens is that array_walk tries to move forward to the next element by calling zend_hash_move_forward_ex() which determines

[PHP-DEV] LDAP module globals

2001-11-10 Thread Stig Venaas
Currently the module has globals for default_link and base_dn. Neither are used AFAICS, any reason why I shouldn't remove them? Stig -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP-DEV] RE: Bug #12740 Updated: LDAP modify functions do not handle special characters

2001-11-09 Thread Stig Venaas
On Thu, Nov 08, 2001 at 08:30:39PM +0100, Christian Chateauvieux wrote: No, it still does not fix my problem. I don't know if I am missing the point but I don't see how my locale settings could help. Your code looks okay, but I don't trust it 100%, could you please do something like:

[PHP-DEV] Bug #12738 Updated: Slow Response on Connecting to LDAP srvr

2001-10-20 Thread venaas
ID: 12738 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: LDAP related Operating System: Winnt 4.0 PHP Version: 4.0.6 New Comment: My best guess is DNS. Can you try with some other LDAP tool? It could be the server trying to lookup the reverse

Re: [PHP-DEV] making mail() funtion work without sendmail on UNIX systems

2001-10-19 Thread Stig Venaas
On Fri, Oct 19, 2001 at 09:24:51AM +0200, Hartmut Holzgraefe wrote: Stig Venaas wrote: well, the current SMTP implementation in win/sendmail.c is, lets say, at least suboptimal it misses a lot of requirements from the RFCs (821/822 or the newer 2821/2822), e.g. case insensitive headers

[PHP-DEV] making mail() funtion work without sendmail on UNIX systems

2001-10-18 Thread Stig Venaas
Hi I have a patch ready for this. I, and also some others I know, would like to send mail from PHP without help of sendmail or other external programs on UNIX, similar to what is done on windows. I have made a patch that makes the sendmail.c for windows, also work with unix, with relatively

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] RC3

2001-10-04 Thread Stig Venaas
On Wed, Oct 03, 2001 at 11:24:08PM -0700, Rasmus Lerdorf wrote: Ok, I have merged it and tested it on one of my servers. Didn't break Thanks. Now I see your commit and the 4.0.7 branch, maybe I made some silly mistake or the cvsweb page for ldap.c was cached or something. anything. But

Re: [PHP-DEV] RC3

2001-10-03 Thread Stig Venaas
On Thu, Oct 04, 2001 at 02:04:27AM +0200, Zeev Suraski wrote: Finally, it's out. www.php.net/~zeev/php-4.0.7RC3.tar.gz I see that my LDAP fix didn't make it. Can someone please explain how this works? I can't see any tags for ldap.c since May but ldap.c in RC3 is 1.94, I would like 1.96 to be

[PHP-DEV] Apache 2.0.18 API does not match sapi_apache2.c code

2001-09-30 Thread Stig Venaas
In Apache 2.0.18 alpha released on June 13, I find apache2/include/util_filter.h with ap_save_brigade() defined with only 3 parameters while we increased it from 3 to 4 on June 23. ap_get_brigade() was changed from 3 to 4 parameters in Apache earlier on, so I guess our change might be for Apache

[PHP-DEV] Bug #13443 Updated: gethostbyname returns the name not the IP addr.

2001-09-26 Thread venaas
ID: 13443 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Duplicate Bug Type: Unknown/Other Function Operating System: BSDI 4.1 PHP Version: 4.0.6 New Comment: PHP uses the resolver library(ies) installed on your system, just as the other software installed. It is possible that you

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] RC3

2001-09-25 Thread Stig Venaas
On Mon, Sep 24, 2001 at 10:40:04PM +0200, Zeev Suraski wrote: If it's a bug fix you believe to be important and the chances, in your opinion, of it screwing things up more than it fixes are slim, go ahead and commit it... Maybe I've already done what's needed, I'm not quite sure how this

Re: [PHP-DEV] [PATCH] fix gethostbyname() to return false when hostname not resolved

2001-09-25 Thread Stig Venaas
On Wed, Sep 26, 2001 at 01:17:55AM +0200, Markus Fischer wrote: On Tue, Sep 25, 2001 at 01:56:28PM -0700, Jim Winstead wrote : here's a patch to fix bug #13423. think anyone is relying on the current (vastly lame, imho) behavior? Because this was the behaviour for a long time now its

Re: [PHP-DEV] RC3

2001-09-24 Thread Stig Venaas
On Wed, Sep 19, 2001 at 10:05:24PM +0200, Stig Venaas wrote: On Tue, Sep 18, 2001 at 06:13:54PM +0300, Zeev Suraski wrote: Does anybody still have anything pending for RC3? There seems to be a serious LDAP bug. For instance the following simple script crashes (you should be able to test

Re: [PHP-DEV] gethostbyaddr, IPv6 mapped IPv4 and native IPv6 addresses

2001-09-19 Thread Stig Venaas
Hi On Tue, Sep 18, 2001 at 06:28:08PM +0200, Matthias Wimmer wrote: Hi! I just noticed that the php function gethostbyaddr is not able to lookup IPv6 mapped IPv4 or native IPv6 addresses. Because I get such addresses from the apache 1.3.19 when it is patched with the KAME IPv6 patch

Re: [PHP-DEV] RC3

2001-09-19 Thread Stig Venaas
=ldap_search($ds,dc=venaas,dc=no, relativeDomainname=www); ldap_first_entry($ds, $sr); I just made the following change in ldap.c (1.96) - le_result_entry = zend_register_list_destructors_ex(_free_ldap_result, NULL, ldap result entry, module_number); + le_result_entry

[PHP-DEV] Bug #13278 Updated: enhancement for ldap_start_tls function

2001-09-16 Thread venaas
ID: 13278 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: LDAP related Operating System: Solaris 7 PHP Version: 4.0.6 Old Assigned To: Assigned To: venaas New Comment: We need the function, but we can't force v3, and we can't use ldap_init

[PHP-DEV] Bug #13169 Updated: Problem with array_diff()

2001-09-13 Thread venaas
ID: 13169 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Arrays related Operating System: Debian PHP Version: 4.0.6 New Comment: The problem is that array_diff() doesn't work with array of arrays any more. File it as a feature request if you really

[PHP-DEV] Bug #12367 Updated: array_diff don't work with array of array (it did with 4.0.4)

2001-07-25 Thread venaas
ID: 12367 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Arrays related Operating System: Linux Red hat 7.1 fr PHP Version: 4.0.6 New Comment: When I wrote array_diff I didn't think of this use. It worked by accident. array_diff was changed to avoid some ordering

[PHP-DEV] Bug #12372 Updated: LDAP calls within a function fail

2001-07-25 Thread venaas
ID: 12372 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: LDAP related Operating System: RedHat 7.0 PHP Version: 4.0.6 New Comment: Are you sure the problem isn't simply that you do $ds = ldap_connet outside the function, and are not passing

Re: [PHP-DEV] cvs socket extension

2001-07-24 Thread Stig Venaas
On Tue, Jul 24, 2001 at 05:16:05AM +0200, Markus Fischer wrote: Great :-) So we're seeing this getting implemented soon ? Volunteers, anyone ? :-)) Is this select stuff so brand new that it's okay to change the API? If it is, we should do it quickly before too many people get to play with

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Stig Venaas
On Mon, Jul 23, 2001 at 11:57:44PM +0200, Markus Fischer wrote: On Mon, Jul 23, 2001 at 11:15:49PM +0200, Stig Venaas wrote : Chris mentioned something that its not needed to restore the last highest value for the max_fd if you drop the current highest one. I agree, it would only

[PHP-DEV] Bug #11058 Updated: php_network_getaddresses: getaddrinfo failed

2001-07-22 Thread venaas
ID: 11058 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Open Bug Type: HTTP related Operating System: OpenBSD 2.6 PHP Version: 4.0.5 New Comment: Could you try to comment out the line #define HAVE_GETADDRINFO 1 in main/php_config.h and rebuild without doing configure? Does it work

[PHP-DEV] Bug #11000 Updated: ftp_connect(...) produces ftpbuf 0 error

2001-07-22 Thread venaas
ID: 11000 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: FTP related Operating System: NT 4.0 PHP Version: 4.0.4pl1 New Comment: What happens I think, is that ftp_connect uses gethostbyname to look up the name, it's called with 127.0.0.1 if you specify

[PHP-DEV] Bug #11025 Updated: ftp_connect() does not work with IP address

2001-07-22 Thread venaas
ID: 11025 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Duplicate Bug Type: FTP related Operating System: Windows NT4 Server PHP Version: 4.0.5 New Comment: I think this is just like bug #11000. Could you test fopen with ftp or http as well? If that works for you I think I know how

Re: [PHP-DEV] Bug #6778 Updated: fsockopen: timeout does not work when nameserver unreachable

2001-07-22 Thread Stig Venaas
I don't think we do this anywhere. I've thought of doing it, but I'm not at all sure what's the best way. Ideas anyone? Ideally it should be possible to specify the resolvers timeout but I haven't seen any good ways. Only other solutions I can think of are rather ugly using threads or maybe

Re: [PHP-DEV] Re: Str enhancement, final run

2001-07-15 Thread Stig Venaas
On Sun, Jul 15, 2001 at 01:13:04AM +0200, Cynic wrote: As for the Andre's suggestions, I like Python's ranges in both lists and strings (they use colon instead of two dots). I some details of it unintuitive, but don't remember what it was exactly as it's been some time since I touched

Re: [PHP-DEV] Help on LDAP and PHP4

2001-07-15 Thread Stig Venaas
On Sun, Jul 15, 2001 at 05:17:40PM -0500, osman.bayona wrote: Hi... I have this issue that is killing me. I installed PHP 4.0.4 with Solaris 8 and Apache. I want to use LDAP connecting to a server in the net (not the same server where i'm working on) And i configure PHP with: configure

Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: Str enhancement, final run

2001-07-11 Thread Stig Venaas
On Tue, Jul 10, 2001 at 08:04:42PM +0200, Jeroen van Wolffelaar wrote: I've said it before, but I *really* am convinced now, that we should: - At least allow $str{index} (while _deprecating_ the array $str[ ] indices) - _possibly_ also allowing $str{start..end} - and if the above is

[PHP-DEV] Bug #11873 Updated: Apache make error with module php4 and ldap

2001-07-09 Thread venaas
ID: 11873 Updated by: venaas Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Compile Failure Operating System: Solaris 2.8 PHP Version: 4.0.6 New Comment: Which LDAP library are you using? Looks like your LDAP header files define LDAP_API_VERSION 2000

Re: [PHP-DEV] Scripting Shootout - PHP ranked 24/29

2001-06-23 Thread Stig Venaas
On Sat, Jun 23, 2001 at 04:45:22PM +0200, Sascha Schumann wrote: On Sat, 23 Jun 2001, John Lim wrote: Thought you all might be interested in this benchmarking shootout: I've talked to the author of the benchmark a couple of weeks ago and he of course did not build PHP with

[PHP-DEV] Bug #11077 Updated: two new array functions

2001-05-24 Thread venaas
ID: 11077 Updated by: venaas Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating system: PHP Version: 4.0.5 Assigned To: Comments: How about insert rather than double? It's more generic and double is simple if you have insert. Like this: ?php $test

Re: [PHP-DEV] LDAP V3 Server Side Sorting

2001-05-17 Thread Stig Venaas
On Wed, May 16, 2001 at 08:52:52AM -0700, David Giffin wrote: If we are to follow the Netscape API then we should have a ldap_search_ext() function which we can pass the results of the ldap_create_sort_control(), other server side and client side controls. We can then incorporate Virtual

Re: [PHP-DEV] Patch: provides SSL capability for sockets in PHP 4.0.1pl2

2001-05-11 Thread Stig Venaas
On Tue, Aug 22, 2000 at 02:42:43PM +0100, Wez Furlong wrote: To enable the code, you need to pass --with-ssl to configure; this will check for openssl using the same method in the snmp extension, but with a different macro name so it doesn't conflict. You may want to move the SSL check

  1   2   >