Daniel Lorch | 1 Aug 2002 01:45

Re: Re: [PHP-QA] Congratulations.

hi,

> Congratulations Derick.
> Most deserving recognition for a terrific job.
> I will add to that my humble thanks.

No offense, but I think other developers should be mentioned as well. I very
much like wez' work on innovative ideas - even though his results might not be
suitable for the masses (such as having PHP client-sided embedded into redmond's
browser etc.).

But generally, I think honoring hard working developers is a good idea, as they
only seldomly get positive feedback on their work (what they certainly deserve).

-daniel

--

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Dan Kalowsky | 1 Aug 2002 02:08

Re: imap quota broken

Yes it did.  Mainly because the old compatibility was wrong.

In the case when a server would respond with multiple resources like so:

C: A003 GETQUOTA ""
S: * QUOTA "" (STORAGE 10 512 MESSAGE 5 256)

The imap_get_quota() function would set the usage and limit values to that
of the last resource.  If there is more than one resource, the last value
is NEVER the STORAGE value.  The current functionality reflects the proper
usage and limit values for all resources, and conforms to RFC 2087.

On Thu, 1 Aug 2002, Jan Schneider wrote:

> One of the lasts commits to the imap quota functions broke backward
> compatibility with the old imap_get_quota() behaviour.
>
> It used to return an array like:
> array ( 'usage' => 83090, 'limit' => 100000, )
> but now returns an array like:
> array ( 'STORAGE' => array ( 'usage' => 83090, 'limit' => 100000, ), )
>
> Jan.
>
> --
> http://www.horde.org - The Horde Project
> http://www.ammma.de - discover your knowledge
> http://www.tip4all.de - Deine private Tippgemeinschaft
>
>
(Continue reading)

Alan Knowles | 1 Aug 2002 02:57
Favicon
Gravatar

Re: phpthreads - hints anyone...


Shane Caraveo wrote:

> Alan Knowles wrote:
>
>> Im looking at adding threading to php, (for the cgi/cli stuff)..
>>
>> The story so far:
>>
>> I've created an extension which diverts all zend_execute calls into 
>> the extension -> phpthreads_execute.
>> this function is a copy of zend_execute with a few modifications
>> - to copy & restore things like  EG(active_symbol_table);
>> - to malloc lock and unlock the execute loop and release on each opcode.
>
>
> Ouch.  While it's an interesting way to deal with the issue, I think 
> this will be way too slow, and maintenance will be hard (keeping up 
> with changes in the real zend_execute, and zend engine in general). 

Plan A was just to get something that worked - even if it was crude and 
nasty... :)
Agreed - there are lots of issues with this method.. timesliceing and 
yeilding if the application is locked most of the time is problematic.

> As in a couple other responses, the way this needs to be implemented 
> has been hashed out, largely based on how the same problem is solved 
> in Perl (there is a remarkable amount of simularity between PHP and 
> Perl at some levels).  If you're interested, lets talk.

(Continue reading)

Yasuo Ohgaki | 1 Aug 2002 04:11
Favicon
Gravatar

Re: mbstring and html encode/const structs

Interesting.

Marcus Boerger wrote:
> Anyone interested may download the patch: 
> http://marcus.boerger.de/php/ext/mbstring/mbstring-entities-const.patch
> And the additional file holding translation the table: 
> http://marcus.boerger.de/php/ext/mbstring/html_entities.c

but I cannot access to your web site....

--
Yasuo Ohgaki

--

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Alan Knowles | 1 Aug 2002 09:04
Favicon
Gravatar

Re: phpthreads - hints anyone...

 Ok, had a slight play with it again..

I did eventually find the perl code for threading although without an 
lxr server it's pretty much impossible to decipher all the macros they 
use..

The reality is I'm waving in the dark a bit - I've got a bit of spare 
time to play with it, but not really that sure whats going on all the 
time ;)

Working on the premise of thread creation starting another interpreter..
php compiled with --enable-experimental-zts, & debug. the code below 
manages to fire up the thread and run it.. - although it segfaults the 
main process after doing it.

This is a little supprising - I expected it to be the otherway round - 
as the logic kind of said that the new threads 'enviroment' (eg. vars) 
would not be initiated properly and it would fail.. , which could be the 
zval used in the callback causing issues..

The code for this stuff is pretty simple at the moment.. - so i'ts down 
the bottom..

As I said - if you can think of what needs doing, I've got a bit of time 
to play with it - although a little direction/hints do help..

regards
alan

void phpthreads_create(void *ptr) {
(Continue reading)

Sujata Ghosh | 1 Aug 2002 09:36

need help!

hi to all!

i want to do followings using php:

1) i have made a form in html. this form contain user 
details who want to download a pdf file. where 
javascript is handling data validation on submission 
of that user info.

2) after that a php file will open and it takes all 
user's information and send a mail to me along with 
those data and automaically start download that pdf 
file. user won't get any mail.

3) i want to put basic checking of email address also 
so that it will force someone to put correct email 
address.

can any one help me out! let me know, then i will 
submit that php coding also.

thanks in advance,
Sujata Ghosh.
Calcutta, india.

--

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

(Continue reading)

Shane Caraveo | 1 Aug 2002 09:49

Re: phpthreads - hints anyone...

Alan Knowles wrote:
> Ok, had a slight play with it again..
> 
> I did eventually find the perl code for threading although without an 
> lxr server it's pretty much impossible to decipher all the macros they 
> use..

It's not about looking at the perl code, that will tell you nothing 
unless you know perl internals.  It's about the way the interpreter 
works, some of the architecture, that is simular to PHP.  In PHP, 
threads are isolated, kind of like seperate processes, but in threads. 
Everything in PHP works that way, so in creating threads for php 
scripts, you have to have a seperate interpreter.  Then you have to 
create a "bridge" between the threads for shared variables.  shmop comes 
close to what is needed, but not close enough.

> The code for this stuff is pretty simple at the moment.. - so i'ts down 
> the bottom..

You're much closer to what needs to happen now.  But you cannot simply 
point to the memory for another thread.  Doing that will cause problems 
like you are running into.  You actually have to copy a bunch of stuff 
so each thread is completely independent.

I've worked up some code in TSRM to abstract native thread calls, and 
have started on an extension, but probably won't have it complete until 
this weekend some time.  What you've done now is fairly simular, but 
pthread specific.  Given time, I might have enough done to email a diff 
containing my work tomorrow night if you want to take a look.

(Continue reading)

Magnus M@ | 1 Aug 2002 10:32
Picon

Re: need help!

Hi Sujata!

This is the wrong list to ask this kind of questions in.
This list is for the developement _of_ PHP, not _with_ PHP.

Questions about developement _with_ PHP should be asked in
php-general mailing list.

Regards
Magnus Määttä

On Thu, 1 Aug 2002 13:06:36 +0530
"Sujata Ghosh" <sujata <at> kshitij.com> wrote:

> hi to all!
> 
> i want to do followings using php:
> 
> 1) i have made a form in html. this form contain user 
> details who want to download a pdf file. where 
> javascript is handling data validation on submission 
> of that user info.
> 
> 2) after that a php file will open and it takes all 
> user's information and send a mail to me along with 
> those data and automaically start download that pdf 
> file. user won't get any mail.
> 
> 3) i want to put basic checking of email address also 
> so that it will force someone to put correct email 
(Continue reading)

Sebastian Nohn | 1 Aug 2002 10:33
Picon
Favicon

0 size snaps?

http://snaps.php.net/php4-200207311500.tar.gz
http://snaps.php.net/php4-200207311500.tar.bz2

And alle the -latested + the last STABLE Files have 0 size.

Regards, Sebastian Nohn
-- 
sebastian <at> nohn.net - http://nohn.net/

--

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Rasmus Lerdorf | 1 Aug 2002 10:37
Picon

segfault in recent code

/home/rasmus/php4/main/SAPI.c(642) : Block 0x0825B220 status:
Beginning:  	Overrun (magic=0x0825B1A8, expected=0x7312F8DC)
[Thu Aug  1 01:32:21 2002] [notice] child pid 24107 exit signal Segmentation fault (11)

Poked around for it a bit, but need to get some sleep.  Not sure the
overrun is actually related to the segfault.  The overrun can be
reproduced by the one-liner:

 <?header('Content-type: image/foo')?>

I'll see if I can find the segfault on the plane tomorrow if nobody in a
saner timezone gets to it first.

-Rasmus

--

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php


Gmane