php-general Digest 26 Sep 2012 06:15:07 -0000 Issue 7980

2012-09-26 Thread php-general-digest-help
php-general Digest 26 Sep 2012 06:15:07 - Issue 7980 Topics (messages 319245 through 319256): Re: install PHP 5.4 by RPM 319245 by: Jonathan Sundquist 319247 by: Matijn Woudt Re: memory allocation 319246 by: Matijn Woudt 319248 by: Marcelo Bianchi

php-general Digest 26 Sep 2012 19:43:53 -0000 Issue 7981

2012-09-26 Thread php-general-digest-help
php-general Digest 26 Sep 2012 19:43:53 - Issue 7981 Topics (messages 319257 through 319267): Re: Vulnerability Announced in phpMyAdmin 319257 by: Daniel Fenn Re: output compression when host has disabled mod_deflate, mod_gzip and php_value auto_prepend_file 319258 by:

Re: [PHP] Vulnerability Announced in phpMyAdmin

2012-09-26 Thread tamouse mailing lists
On Tue, Sep 25, 2012 at 3:20 PM, Daniel Brown danbr...@php.net wrote: Just a three-list cross-post to bring it to everyone's attention at once, in case you weren't already aware. It was announced today that a compromised SourceForge mirror was distributing a malicious file with the

Re: [PHP] Vulnerability Announced in phpMyAdmin

2012-09-26 Thread Daniel Fenn
Thank you for the heads up. On 9/26/12, tamouse mailing lists tamouse.li...@gmail.com wrote: On Tue, Sep 25, 2012 at 3:20 PM, Daniel Brown danbr...@php.net wrote: Just a three-list cross-post to bring it to everyone's attention at once, in case you weren't already aware. It was announced

Fwd: [PHP] output compression when host has disabled mod_deflate, mod_gzip and php_value auto_prepend_file

2012-09-26 Thread tamouse mailing lists
Crikey, forgot to include the list. -- Forwarded message -- From: tamouse mailing lists tamouse.li...@gmail.com Date: Wed, Sep 26, 2012 at 1:57 AM Subject: Re: [PHP] output compression when host has disabled mod_deflate, mod_gzip and php_value auto_prepend_file To: edward eric

[PHP] PHP as Application Server

2012-09-26 Thread Maciej Liżewski
Hi, Maybe this topic have been already on board, but I could not find nothing in google, so my question to PHP maintaneers (and other users too) is: Why there is no possibility to run PHP in application server way among other SAPI modules and other possibilities to run PHP? PHP would encounter

Re: [PHP] PHP as Application Server

2012-09-26 Thread shiplu
My recent experience is PHP eats more memory. But it matters when you are running it under memory constraint device. For a high end server its not a matter. I built an chat server using socket functions which was intended to run on embedded device. I didn't want to load apache. So I wrote it in

Re: [PHP] PHP as Application Server

2012-09-26 Thread Daniel Brown
On Wed, Sep 26, 2012 at 5:58 AM, Maciej Liżewski maciej.lizew...@gmail.com wrote: Why there is no possibility to run PHP in application server way among other SAPI modules and other possibilities to run PHP? PHP would encounter great performance boost and became more enterprise :) Just look at

[PHP] Re: PHP as Application Server

2012-09-26 Thread Jim Giner
On 9/26/2012 5:58 AM, Maciej Liżewski wrote: Hi, Maybe this topic have been already on board, but I could not find nothing in google, so my question to PHP maintaneers (and other users too) is: Why there is no possibility to run PHP in application server way among other SAPI modules and other

Re: [PHP] Re: PHP as Application Server

2012-09-26 Thread Maciej Liżewski
Well.. many things changed during last 30 years. Cobol is not mainstream, we have got OOP, Java, Python, Ruby, Google and other great things :) I am talking about stateful application server. There are plenty examples in other programming languages: Java has Jetty, Tomcat, Ruby On Rails, Python

[PHP] Re: PHP as Application Server

2012-09-26 Thread Alessandro Pellizzari
Il Wed, 26 Sep 2012 17:23:35 +0200, Maciej Liżewski ha scritto: persistent application servers load resources only on startup (or when needed) and keep them in memory until programatically freed or until end of application (server shutdown). You don't mention the downsides: - every

Re: [PHP] Re: PHP as Application Server

2012-09-26 Thread Jim Giner
On 9/26/2012 11:23 AM, Maciej Liżewski wrote: Well.. many things changed during last 30 years. Cobol is not mainstream, we have got OOP, Java, Python, Ruby, Google and other great things :) I am talking about stateful application server. There are plenty examples in other programming languages:

Re: [PHP] Re: PHP as Application Server

2012-09-26 Thread Matijn Woudt
On Wed, Sep 26, 2012 at 5:23 PM, Maciej Liżewski maciej.lizew...@gmail.com wrote: in Java (for example) you just write class: class Counter { static private counter = 0; public void increment() { this.counter++; } } And here's where things go wrong.. You assume ++ is an atomic

Re: [PHP] Re: PHP as Application Server

2012-09-26 Thread Robert Williams
On 9/26/12 10:18, Matijn Woudt tijn...@gmail.com wrote: Writing scripts for an application server requires a much deeper understanding of threads and computer internals,so as a result it probably increases error rate. Well... yes and no. PHP's architecture pretty much keeps you from having to

[PHP] Static constructor support

2012-09-26 Thread Yves Goergen
Hi, I couldn't find out whether PHP supports static constructors, and how the syntax is. The web and the PHP manual don't mention it. So is it not supported? If it is, is there a PHP version restriction? -- Yves Goergen - nospam.l...@unclassified.de - http://unclassified.de -- PHP General

Re: [PHP] Static constructor support

2012-09-26 Thread Stuart Dallas
On 26 Sep 2012, at 22:13, Yves Goergen nospam.l...@unclassified.de wrote: I couldn't find out whether PHP supports static constructors, and how the syntax is. The web and the PHP manual don't mention it. So is it not supported? If it is, is there a PHP version restriction? If you mean what C#

Re: [PHP] Static constructor support

2012-09-26 Thread Yves Goergen
On 26.09.2012 23:20 CE(S)T, Stuart Dallas wrote: If you mean what C# calls a static constructor, no that does not exist in PHP, but you can fake it. Okay, thank you for the quick info. How do other languages than C# call that? :-) My class is a debug helper class, that can write trace

Re: [PHP] Static constructor support

2012-09-26 Thread Stuart Dallas
On 26 Sep 2012, at 22:29, Yves Goergen nospam.l...@unclassified.de wrote: On 26.09.2012 23:20 CE(S)T, Stuart Dallas wrote: If you mean what C# calls a static constructor, no that does not exist in PHP, but you can fake it. Okay, thank you for the quick info. How do other languages than