Re: [PHP-DEV] socket_recvfrom

2002-08-27 Thread Jason Greene
On Tue, 2002-08-27 at 10:23, Torsten Schlabach wrote: > Hi! > > I am not sure if I > a) misunderstood what the function is good for > b) found a documentation problem or > c) found a bug. > > Maybe one of the more senior people on that list can advise me wether I > should file a bug report or no

Re: [PHP-DEV] java in php

2002-08-27 Thread Lachlan Mulcahy
On Tue, 27 Aug 2002 [EMAIL PROTECTED] wrote: This probably doesn't belong on php-dev, but if you like I can help you, email to my address the [java] section of your php.ini.. in the mean time check that you have the extension= line in your php.ini and that the file exists in the directory d

Re: [PHP-DEV] Sybase / patches

2002-08-27 Thread Timm Friebe
On Fri, 2002-08-23 at 00:24, Timm Friebe wrote: > On Wed, 2002-08-21 at 10:22, Timm Friebe wrote: > [...] [...] > 3) I had a look at the memory thing (although "unbuffered", all rows >that have been read will reside in memory until sybase_free_result() >is called). Changing this would make

Re: [PHP-DEV] How to send POST directly from PHP ?

2002-08-27 Thread Matthew Walker
Look up the CURL functions in the PHP docs. Steinar Kolnes said: > > Hi, > > Can someone tell me how I can send POST variables directly from PHP (not > from the clients browser). > The whole point is that the POST must come from the PHP server because the > server who receives the POST only accep

[PHP-DEV] How to send POST directly from PHP ?

2002-08-27 Thread Steinar Kolnes
-Opprinnelig melding- Fra: Steinar Kolnes [mailto:[EMAIL PROTECTED]] Sendt: August 28, 2002 12:57 AM Til: [EMAIL PROTECTED] Emne: How to send POST directly from PHP ? Hi, Can someone tell me how I can send POST variables directly from PHP (not from the clients browser). The whole poin

[PHP-DEV] Patch for bug/feature request 16119

2002-08-27 Thread Tony Leake
Hi, I have written a patch for the above feature request to implement an array_swap function. array_swap($array, $key1, $key2), where keys can be either index or assoc and array content can be any combination of string, long, array and object. This is my first patch and I am hoping to contri

[PHP-DEV] CVS Account Request: proton

2002-08-27 Thread Sami Louko
Translating docs to Finnish and perhaps maintaining www.php.net if help is needed. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] COM Memory Leak in 4.2.3RC1

2002-08-27 Thread Michael Sisolak
There appears to be a memory leak when setting a property value of a COM object in 4.2.3RC1. Running under ISAPI if this script is repeated memory usage continues to grow: $adodb = new COM("ADODB.Connection"); $adodb->ConnectionString = str_repeat("this is a text string!", 1000); Looking throug

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

2002-08-27 Thread Marcus Börger
Better, Thanks. At 20:56 27.08.2002, Andrey Hristov wrote: >Today I am finished :((( >I will make the patch tommorow I will send it here. > >array_diff_assoc()? >Propose names. > >Regards, >Andrey Hristov > > >- Original Message - >From: "Marcus Börger" <[EMAIL PROTECTED]> >To: "Andre

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

2002-08-27 Thread Andrey Hristov
Today I am finished :((( I will make the patch tommorow I will send it here. array_diff_assoc()? Propose names. Regards, Andrey Hristov - Original Message - From: "Marcus Börger" <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL PROTECTED]> Cc: "Brad LaFountain" <[EMAIL PROTECTED]>;

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

2002-08-27 Thread Marcus Börger
I think that would be interesting but could you perhaps provide a more distinguishable name? regards marcus At 20:35 27.08.2002, Andrey Hristov wrote: >Hi, >I've done some hacking and have working (one example tested) array_diff() >modified to >be like array_adiff(). If there is interest I will

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

2002-08-27 Thread Andrey Hristov
Hi, I've done some hacking and have working (one example tested) array_diff() modified to be like array_adiff(). If there is interest I will provide a patch. Best regards Andrey Hristov - Original Message - From: "Brad LaFountain" <[EMAIL PROTECTED]> To: "Stig Venaas" <[EMAIL PROTECTED]

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-27 Thread George Schlossnagle
A little update on all of this. I changed the way that the handlers are created in the apache config from php_value uri_handler /tmp/foo.php to phpUriHandler /tmp/foo.php and logically separated them from the ini structure. This eliminates some unnecessary work that was being done before and

Re: [PHP-DEV] ISAPI Crash Debugging Notes

2002-08-27 Thread Shane Caraveo
> Either way - starting threads from an ISAPI filter/extension is > completely forbidden (or at least strongly discouraged) so even if there > is some bug in there, starting our own thread is not an option. Can you > give me the data I mentioned in the previous letter? > > Zeev It's not forb

[PHP-DEV] adding persistent toggle to zend_stack implementation

2002-08-27 Thread George Schlossnagle
Hi, I'd like to use the zend_stack stuff for stacked handlers in the new apache_hooks sapi stuff, but right now, it emalloc's everything, which is unacceptable for my usage. I could write my own stack implementation just for the sapi stuf, but thats seems less productive than making zend_sta

[PHP-DEV] socket_recvfrom

2002-08-27 Thread Torsten Schlabach
Hi! I am not sure if I a) misunderstood what the function is good for b) found a documentation problem or c) found a bug. Maybe one of the more senior people on that list can advise me wether I should file a bug report or not. I am writing some code in PHP that makes use of the socket_ function

[PHP-DEV] [PATCH][Resend:] array_search() changed to allow the reposition of the internal pointer

2002-08-27 Thread Andrey Hristov
Hi, this patch adds new functionality to array_search(). It is mostly useful in cases where the indices in the array are not numeric but strings. When a programmer wants to find the key for a value in the array he/she is give the opportunity to move the internal pointer of the array to the pos

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

2002-08-27 Thread Brad LaFountain
Well I tried to use them like that, So I guess there is a little need. I wrote a simple php function to do the same thing. I would volunteer but I have alot of stuff going on. Maybe if I get borred sometime soon. - brad --- Stig Venaas <[EMAIL PROTECTED]> wrote: > On Tue, Aug 27, 2002 at 05:04

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] array_diff not working with last element different

2002-08-27 Thread Andrey Hristov
so, is there need of array_adiff()? Best regards Andrey Hristov - Original Message - From: "Stig Venaas" <[EMAIL PROTECTED]> To: "Brad LaFountain" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, August 27, 2002 5:02 PM Subject: Re: [PHP-DEV] array_diff not working with last

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

Re: [PHP-DEV] ISAPI Crash Debugging Notes

2002-08-27 Thread Michael Sisolak
--- Zeev Suraski <[EMAIL PROTECTED]> wrote: > At 09:53 27/08/2002, Michael Sisolak wrote: > > > >i've been doing some debugging of the crashes when running php > under > > > >the isapi sapi. is anybody else currently looking at this? if > you > > > >are let's talk - here are my notes so far. >

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

2002-08-27 Thread Brad LaFountain
When using array diff, if the last element and only the last element is different it won't be returned as a difference. 1, "blah" => 1); $a1 = array("b" => 2, "blah" => 2); var_dump(array_diff($ar, $a1)); ?> array(2) { ["b"]=> int(1) ["blah"]=> int(1) } 1, "blah" => 1); $a1 = array("b"

Re: [PHP-DEV] curl and UTF-8, random encoding?

2002-08-27 Thread Wez Furlong
You did not say if you are using mbstring; check your phpinfo() output and look in the mbstring section. Also, have you tried looking at the data using curl/wget/telnet-to-web-server/ netcat and verified that the data is really really OK at that point? What if you use an alternative method of fetc

Re: [PHP-DEV] curl and UTF-8, random encoding?

2002-08-27 Thread Merijn van den Kroonenberg
Ahh, sorry bout that, i think the mbstring module is indeed enabled. I found this in my php.ini: mbstring.internal_encoding= UTF-8 ; Set internal encoding to UTF-8 So this module will transparently encode my data? Do i need to disable the entire module, or does it have an option to leave my

[PHP-DEV] ZE2 and object destruction

2002-08-27 Thread fab wash
If the module doesn't know it's time to shutdown and tries to use an object that has already been destroyed, boom. F.

[PHP-DEV] ZE2 and object destruction ...

2002-08-27 Thread l0t3k
i've noticed that in ZE2 that object autodestruction (ala zend_objects_store_call_destructors) happens _after_ a module's RSHUTDOWN, which causes some interesting lifetime management issues in an extension im writing. in particular, the Zend objects wrap some in-memory structures from a library wh

Re: [PHP-DEV] curl and UTF-8, random encoding?

2002-08-27 Thread Marcus Börger
Wez also mentioned mbstring. This module works transparently, so please check if that module is available. marcus At 12:25 27.08.2002, Merijn van den Kroonenberg wrote: >Thanks for the answer, > >It doesnt make sense indeed ;-) But unfortunately It hasn't been processed >by an xml parser in the

[PHP-DEV] use VB DLL (COM object) with php

2002-08-27 Thread Franky
I try to use a simple COM write in VB ... == Option Explicit Dim sc As ScriptingContext Sub OnStartPage(AspSC As ScriptingContext) Set sc = AspSC End Sub Public Function ecrire() sc.Response.Write "Voici mon super texte" End Function

[PHP-DEV] java in php

2002-08-27 Thread m . musumeci
hello everyone, i just have a problem. i have installed php with --with-java option and everything has gone well. i also have configured php.ini pointing to the libraried. the result is that php works ok, but when i use the Java() class, the PHP simply ingnores it and so java doesn't work. my c

[PHP-DEV] Possible leak in zend_llist ?

2002-08-27 Thread l0t3k
hi, im reviewing the source code of zend_llist.c and it appears there may be an inconsistency in the way deletions are handled which may cause leaks. in particular the macro DEL_LLIST_ELEMENT only releases memory for a node if a destructor is specified for the zend_llist, whereas memory is alwa

Re: [PHP-DEV] curl and UTF-8, random encoding?

2002-08-27 Thread Merijn van den Kroonenberg
Thanks for the answer, It doesnt make sense indeed ;-) But unfortunately It hasn't been processed by an xml parser in the php script. When i check the output direct after the curl_exec its already converted (tested by echoing $result, and by setting RETURNTRANSFER to 0). The perl script that crea

Re: [PHP-DEV] curl and UTF-8, random encoding?

2002-08-27 Thread Wez Furlong
Hey, That does not make sense, since neither curl nor PHP do any kind of conversion like that. Are you sure that you're not looking at the output from an XML processor that has mangled utf-8 -> iso-8859-1 ?? (expat has source and target encodings that can be set separately), And are you using som

[PHP-DEV] CVS Account Request: crystal555

2002-08-27 Thread Nasser Alansari
to Develop PHP -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] ISAPI Crash Debugging Notes

2002-08-27 Thread Zeev Suraski
At 09:53 27/08/2002, Michael Sisolak wrote: > > >i've been doing some debugging of the crashes when running php under > > >the isapi sapi. is anybody else currently looking at this? if you > > >are let's talk - here are my notes so far. > > > > first off, can you try using > > http://www.php.net

[PHP-DEV] curl and UTF-8, random encoding?

2002-08-27 Thread Merijn van den Kroonenberg
Hello List, I have a problem with the php CURL module and UTF-8 data. My php script uses curl to do a post to a perl/cgi script. This perl script returns UTF-8 encoded XML. The perl script returns utf-8, i have verified that using the webserver logfiles, but the data that i receive in $result (se