[PHP-DEV] Re: [apc-error] apc_sma_free: could not locate address 0x901

2004-11-10 Thread Thomas Seifert
On Wed, 10 Nov 2004 11:20:55 +0800, Xuefer wrote: > apc guys > with lastest CVS version, i recently get this error shown in error_log, any > idea? > 0x901 is a fixed constant, never changed > it seem only happened when file is updated and reload the page > 2nd reload is ok, with new file take eff

[PHP-DEV] Does anyone have a valid magic.mime file?

2004-11-10 Thread =?ISO-8859-1?Q?Bj=F6rn_Wiberg?=
Hi again! I've been trying to get mime_magic to work with PHP 5.0.2, but it seems to complain about the magic file being valid. I've tried both with the Apache 2.0.52 version of "magic" and with the PHP5 Win32 version of "magic.mime", but it still says that they're invalid. Please, does anyone

Re: [PHP-DEV] Upload Progress Meter Patch

2004-11-10 Thread Curt Zirzow
* Thus wrote Klaus Reimer: > Joe Orton wrote: > >>It is a user interface problem, so it should be done there. > >It's really the only place it can be done safely > > Web browsers don't offer any API to allow a client-side progress bar. > The only client-side solution I know of is ActiveX and Java

Re: [PHP-DEV] Upload Progress Meter Patch

2004-11-10 Thread Klaus Reimer
Curt Zirzow wrote: You can provide a progress bar, as php stands right now, without any patch. Ok, then tell me how, please. Is it documented somewhere? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] Bug #30743 - proc_close() causes a handle leak

2004-11-10 Thread [EMAIL PROTECTED]
> CloseHandle(proc->child), to close the process handle. > > This is causing a handle leak on Windows, and eventually brings the > > whole OS to it's knees. > > > > Here's the fixed code snippet (there's a DIFF at the end of the file): > > > > Cl

[PHP-DEV] [PATCH] Bug #30743 - proc_close() causes a handle leak

2004-11-10 Thread [EMAIL PROTECTED]
RN_FALSE; } ZEND_FETCH_RESOURCE(proc, struct php_process_handle *, &zproc, -1, "process", le_proc_open); CloseHandle(proc->child);// ilya.1.0 20041110 zend_list_delete(Z_LVAL_P(zproc)); RETURN_LONG(FG(pclose_ret)); } /* }}} */ - cut here

Re: [PHP-DEV] Upload Progress Meter Patch

2004-11-10 Thread [EMAIL PROTECTED]
Actually, it's displaying a progress bar during upload is only one part of the problem. The major problems with HTTP uploads are introduced with large files (which the progress bar is needed for, anyway, otherwise there's not much sense to it) and bad or loosy connections (which most of the home c

Re: [PHP-DEV] [PATCH] Bug #30743 - proc_close() causes a handle leak

2004-11-10 Thread Derick Rethans
On Wed, 10 Nov 2004, [EMAIL PROTECTED] wrote: > Hi Guys, > > PHP_FUNCTION(proc_close) doesn't have a call to > CloseHandle(proc->child), to close the process handle. > This is causing a handle leak on Windows, and eventually brings the > whole OS to it's knees. > > Here's the fixed code snippet (t

Re: [PHP-DEV] [PATCH] Bug #30743 - proc_close() causes a handle leak

2004-11-10 Thread Antony Dovgal
lly brings the > whole OS to it's knees. > > Here's the fixed code snippet (there's a DIFF at the end of the file): > > CloseHandle(proc->child);// ilya.1.0 20041110 First of all, this will work only under M$ systems and there are plenty of oth

Re: [PHP-DEV] [PATCH] Bug #30743 - proc_close() causes a handle leak

2004-11-10 Thread Derick Rethans
On Wed, 10 Nov 2004, [EMAIL PROTECTED] wrote: > I'm sorry, I'm a bit new to CVS, so I don't yet know how to produce a > unified diff. A command-line sample would be great - I'm learning > fast. > In fact it's my first time with PHP internals sources. Put this in ~/.cvsrc: upd -dP diff -upNw and

Re: [PHP-DEV] [PATCH] Bug #30743 - proc_close() causes a handle leak

2004-11-10 Thread Wez Furlong
proc_terminate should set the child handle to INVALID_HANDLE_VALUE after it closes the handle, and the dtor should check that the child handle is valid before it closes it. --Wez. [EMAIL PROTECTED] wrote: Hi Antony, Makes sense to me, however, what about TerminateProcess() in PHP_FUNCTION(proc_t

Re: [PHP-DEV] [PATCH] Bug #30743 - proc_close() causes a handle leak

2004-11-10 Thread [EMAIL PROTECTED]
No no, I've checked the documentation. It seems that CloseHandle() is still required after terminating a process. Although MS documentation for it's own products is not always 100% accurate. I suggest checking this impirically... On Wed, 10 Nov 2004 13:54:08 -0500, Wez Furlong <[EMAIL PROTECTED]>

Re: [PHP-DEV] [PATCH] Bug #30743 - proc_close() causes a handle leak

2004-11-10 Thread Wez Furlong
Fixed in CVS. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Does anyone have a valid magic.mime file?

2004-11-10 Thread Aidan Lister
Hi Bjorn, There definitely isn't anything special about this file, however it works for me with Apache 2 / PHP 5, http://virtualexplorer.com.au/magic.mime Good luck, Aidan ""Björn wiberg"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi again! I've been trying to get mime_magi

[PHP-DEV] zend_highlight routine

2004-11-10 Thread Aidan Lister
I'm rewriting the highlight_file/string methods in userland code (using the tokenizer) because I've found the native functions painful. It is difficult to insert line numbering properly, and have accurate function referencing - most pastebins now use PEAR's Text_Highlight to highlight the code

[PHP-DEV] Re: Optimized GIF animations created on the fly (patch included)

2004-11-10 Thread =?ISO-8859-1?Q?Jaakko_Hyv=E4tti?=
(Oops sent this to wrong list address first.) On Tue, 19 Oct 2004, Greg Donald wrote: > On Tue, 19 Oct 2004 10:32:01 +0300 (EEST), Jaakko Hyvätti > <[EMAIL PROTECTED]> wrote: > > I hope people can test this patch and suggest improvements, and that > > eventually the patch makes it into php-4

Re: [PHP-DEV] Re: Does anyone have a valid magic.mime file?

2004-11-10 Thread =?ISO-8859-1?Q?Bj=F6rn_Wiberg?=
Hello Aidan! Thanks for your reply! On Thu, 11 Nov 2004, Aidan Lister wrote: There definitely isn't anything special about this file, however it works for me with Apache 2 / PHP 5, http://virtualexplorer.com.au/magic.mime It seems that one doesn't work either (at least on our AIX system), but than