Re: [PHP-DEV] PHP4: php_module holds memory to long !

2001-01-10 Thread Stig Venaas
On Wed, Jan 10, 2001 at 09:23:43PM +0200, Stanislav Malyshev wrote: SS Thanks for the correction! I have never seen that in action SS though. Usually, the C library will keep freed memory in SS free lists and does not decrease the size of the data SS segment using sbrk.

Re: [PHP-DEV] Call to ldap_connect() returns always false

2001-01-10 Thread Stig Venaas
On Wed, Jan 10, 2001 at 04:51:51PM +0100, Uwe Steinmann wrote: Then I fired up gdb, set a breakpoint right before ldap_open() in php_if_ldap_connect() and run httpd with -X -f conf.file. Steping into ldap_open() didn't work, though openldap was compiled with --enable-debug. BTW, listing the

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

2001-01-15 Thread Stig Venaas
On Mon, Jan 15, 2001 at 03:52:17PM -, [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Operating system: Linux 2.2.18 PHP version: 4.0.4pl1 PHP Bug Type: *Directory Services problems Bug description: Adding LDAP entries drops credentials if update is referred We

Re: [PHP-DEV] Legal solution: RE: [PHP-DEV] Non-GPL readline

2001-01-15 Thread Stig Venaas
On Mon, Jan 15, 2001 at 11:16:14AM +0100, Ragnar Kjrstad wrote: On Mon, Jan 15, 2001 at 09:11:56AM -, Sam Liddicott wrote: If I were to write a proxy library which could integrate with various read-line style libraries - lets say just the GNU one for now to save time, and er...

Re: [PHP-DEV] PHP 4.0 Bug #8803 Updated: crazy implementation of printf/sprintf

2001-01-21 Thread Stig Venaas
On Fri, Jan 19, 2001 at 04:24:16PM +0100, Sascha Schumann wrote: Does %.2x work? If not, then it is indeed not in compliance with C99. 7.19.6 says: The comments in ext/standard/formatted_print.c says: * New sprintf implementation for PHP. * * Modifiers: * * " " pad integers

Re: [PHP-DEV] zval question

2001-01-24 Thread Stig Venaas
On Thu, Jan 25, 2001 at 02:20:42AM +0100, Harald Radi wrote: hi, i'm tricking around with the COM extension to fix the open bugs (and of course to satisfy my requirements). there are - if (pval_arg-is_ref == 0) { ... } else { ... } -

Re: [PHP-DEV] PHP 4.0 Bug #2183 Updated: OPENSSL.org

2001-02-10 Thread Stig Venaas
On Sat, Feb 10, 2001 at 06:42:41PM -, [EMAIL PROTECTED] wrote: ID: 2183 Updated by: jimw Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Assigned To: Comments: i guess an mhash/mcrypt-like openssl extensions is being requested. refiled against 4.0. I

[PHP-DEV] configure problems with latest snapshot

2001-02-13 Thread Stig Venaas
Hi When I try to configure latest snapshot without any arguments, it complains about no apxs and stops. Haven't got time to check what's going on now. Stig -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP-DEV] PHP 4.0 Bug #9177 Updated: crypt problems with openssl

2001-02-15 Thread Stig Venaas
On Thu, Feb 15, 2001 at 04:35:43PM -, [EMAIL PROTECTED] wrote: ID: 9177 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: *Install and Config Assigned To: Comments: IIRC this is fixed already in CVS so please try the latest CVS snapshot

Re: [PHP-DEV] PHP 4.0 Bug #9177 Updated: crypt problems with openssl

2001-02-15 Thread Stig Venaas
On Thu, Feb 15, 2001 at 08:29:57PM +0100, Jani Taskinen wrote: On Thu, 15 Feb 2001, Stig Venaas wrote: Are you sure? I haven't seen any fix. Could someone tell me what was Oh? I remembered incorrectly then..I thought you were the one who fixed it.. :) I don't mind the credit (: Well, I

Re: [PHP-DEV] PHP 4.0 Bug #9337 Updated: make in_array return key, if searched value was found

2001-02-20 Thread Stig Venaas
On Tue, Feb 20, 2001 at 08:27:59AM -0600, Andrei Zmievski wrote: in_array() used to move the pointer to the entry found, but people complained about it so I remove it... :) And I thought it was neat, can't please everyone I guess (: There seems to be a general problem with array functions and

Re: [PHP-DEV] RE: PHP 4.0 Bug #9351 Updated: LDAP_SEARCH

2001-02-24 Thread Stig Venaas
On Wed, Feb 21, 2001 at 08:49:25AM +0800, nikony wrote: I have thought about that but as you know, it's now a fault of LDAP Server. I use open ldap and when i use command line: ldapsearch -p 999 -h localhost -b ... "(date =20010116)" it works! and even more: ldapsearch -p 999 -h localhost

Re: [PHP-DEV] SSL socket support

2001-02-26 Thread Stig Venaas
On Mon, Feb 26, 2001 at 01:31:05AM -, Wez Furlong wrote: I've been reviewing my relatively crude patch from September last year that provided transparent SSL socket access to PHP via the php functions fsockopen, fread etc. etc. Great, I was wondering what happened, was considering doing

Re: [PHP-DEV] SSL socket support (LONG!)

2001-02-26 Thread Stig Venaas
On Mon, Feb 26, 2001 at 11:39:51PM +, Wez Furlong wrote: When opening a socket there are 3 stages (and thus operations on the socket): 1. Create a socketd of appropriate domain/type/family (socket(2)) 2. resolve the address to connect to (domain specific) 3. make the connection

Re: [PHP-DEV] SSL - joining sockets and files (resent)

2001-02-28 Thread Stig Venaas
On Wed, Feb 28, 2001 at 05:12:55PM +, Wez Furlong wrote: I think what we need depends on how far we are willing to go to make the codebase nicer. Andi Gutmans suggested that it would be nice to nuke all the checks for sockets in the code; depending on how far we go towards that ideal, we

Re: [PHP-DEV] SSL - joining sockets and files

2001-02-28 Thread Stig Venaas
On Thu, Mar 01, 2001 at 07:14:18AM +0200, Andi Gutmans wrote: This sounds pretty good. I'll try and look at the code this weekend. Some of the code is really ugly especially the legacy code. Yes, I like it too, and it is something I've been halfway thinking of myself because of IPv6. Some of

Re: SV: [PHP-DEV] The new design

2001-03-08 Thread Stig Venaas
On Thu, Mar 08, 2001 at 07:17:42PM +0100, Bjrn Schotte wrote: * Jim Winstead wrote: the reason i don't mind seeing it gone from the main page is that i think having two search-like boxes on the same page that behave differently is confusing. Have a look at http://www.php-center.de/ - on

Re: [PHP-DEV] PHP 4.0 Bug #8856 Updated: gethostbyname returns hostname instead of adress

2001-03-11 Thread Stig Venaas
On Sun, Mar 11, 2001 at 10:28:00PM -0800, [EMAIL PROTECTED] wrote: For at least some months, gethostbyname() in sockets.c has been replaced by gethostbyname() in ext/standard/dns.c which does sockets.c in ext/sockets? That has been #if 0'd out ever since it was originally written in

Re: [PHP-DEV] PHP 4.0 Bug #9794: array_keys resets the array pointer and can not be used when looping

2001-03-16 Thread Stig Venaas
On Fri, Mar 16, 2001 at 11:21:39AM -0600, Andrei Zmievski wrote: On Fri, 16 Mar 2001, Daniel Beckham wrote: Awesome. Are you planning to just fix the array_keys function, or will there be a change as to how the array functions work with the array pointers? It'll be on a case-by-case

Re: [PHP-DEV] PHP 4.0 Bug #9808 Updated: crypt function not supported

2001-03-18 Thread Stig Venaas
On Sat, Mar 17, 2001 at 04:20:47PM -, [EMAIL PROTECTED] wrote: ID: 9808 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Description: crypt function not supported what other option to crypt function that would be compactable with windows system. If

Re: [PHP-DEV] documenting extensions

2001-04-02 Thread Stig Venaas
Hi On Mon, Apr 02, 2001 at 01:42:40PM +0100, Wez Furlong wrote: Can anyone give me some pointers on how I might go about documenting the openSSL extension? ATM, there is a readme, but I would like to put this stuff in the manual, with some examples. There are some docs, see

Re: [PHP-DEV] documenting extensions

2001-04-02 Thread Stig Venaas
On Mon, Apr 02, 2001 at 02:07:27PM +0100, Wez Furlong wrote: On 2001-04-02 13:43:18, "Stig Venaas" [EMAIL PROTECTED] wrote: On Mon, Apr 02, 2001 at 01:42:40PM +0100, Wez Furlong wrote: Can anyone give me some pointers on how I might go about documenting the openSSL extensi

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO-4.1.txt

2001-04-17 Thread Stig Venaas
On Wed, Apr 18, 2001 at 12:22:47AM +0300, Zeev Suraski wrote: Cool - it looks very good! That's exactly what I meant in the 'something similar to C++'s virtual classes' :) It looks good, but it also looks like it doesn't solve my problem. Well I guess that's my problem not yours (: To do

Re: [PHP-DEV] openssl module for php

2001-05-04 Thread Stig Venaas
On Thu, Apr 26, 2001 at 11:42:24AM -0400, spencer 'sporty' portee wrote: As of late, the company I work for, Community Connect, needs to extend the openssl php module and might be able to release the source. It is for RSA encryption, but in my own interest, i would like to add on the other

Re: [PHP-DEV] openssl module for php

2001-05-04 Thread Stig Venaas
On Fri, May 04, 2001 at 07:22:03PM +0200, Sascha Kettler wrote: You won't need to pass the algorithm by an arg, as the key already contains the algorithm identification (pkey-type). I haven't used any DSA encryption yet, but maybe you can just add the code to the switch statements. Ah yes, I

Re: [PHP-DEV] openssl module for php

2001-05-04 Thread Stig Venaas
On Fri, May 04, 2001 at 09:21:28PM +0200, Sascha Kettler wrote: On 2001-05-04 17:59:03, Stig Venaas [EMAIL PROTECTED] wrote: followed up on that. It would be good if you and Sascha Kettler could agree on how the API should be How about: openssl_key_encrypt( string data

Re: [PHP-DEV] Dynamic Update of DNS ??

2001-05-07 Thread Stig Venaas
On Mon, May 07, 2001 at 06:54:53PM +0200, Vincen Pujol wrote: Hi, Sorry for the crossposting but I don't know where to find a solution for this. I need to be able to update dynamically entries in a DNS (Bind 9). My DNS supports dynamic updates but how to do dynamic

Re: [PHP-DEV] Dynamic Update of DNS ??

2001-05-08 Thread Stig Venaas
On Tue, May 08, 2001 at 08:35:37AM -0400, Stig Sæther Bakken wrote: [Stig Venaas [EMAIL PROTECTED]] the LDAP back-end, see http://www/dns/bind/bind-sdb/. If you look at ^^^ I guess this will take most people to somewhere else than they expect. :-) - Stig

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

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

2001-05-11 Thread Stig Venaas
Oops, that mail was 9 months old, I thought it was strange that it was a patch for 4.0.1... Sorry, ignore this and my previous post. Stig -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

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

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

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

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] 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
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 it): $ds=ldap_connect(garibaldi.venaas.no); ldap_bind($ds,,);

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

[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

[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

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

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

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

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

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

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,

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

[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

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

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

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

[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

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

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

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] 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] 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 +=

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:

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

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

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

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

[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

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

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