[PHP-DEV] feature request : easy shared memory

2013-03-14 Thread rene7705
Hi. I'd like to build a replacement for SQL (yes, talk about an ambitious project! ;), because the constant transferal of data in and out of SQL from Javascript (where everything might as well be object-oriented and hierarchial) is a pain in the neck. But in order to do so, I'd very much like

[PHP-DEV] Re: feature request : easy shared memory

2013-03-14 Thread rene7705
oh, if no PHP threads/processes are active, all sharedmem's would still be allocated by the PHP OS-level process itself, of course, to prevent any overhead as new PHP calls are made that access this sharedmem. On Thu, Mar 14, 2013 at 8:05 AM, rene7705 rene7...@gmail.com wrote: Hi. I'd like

Re: [PHP-DEV] feature request : easy shared memory

2013-03-14 Thread Nikita Nefedov
On Thu, 14 Mar 2013 07:05:03 -, rene7705 rene7...@gmail.com wrote: Hi. I'd like to build a replacement for SQL (yes, talk about an ambitious project! ;), because the constant transferal of data in and out of SQL from Javascript (where everything might as well be object-oriented and

[PHP-DEV] Re: [RFC] Allow trailing comma in function call argument lists

2013-03-14 Thread Sara Golemon
On Tue, Feb 19, 2013 at 4:06 AM, Sara Golemon poll...@php.net wrote: Opening RFC to allow trailing comma in function call argument lists https://wiki.php.net/rfc/trailing-comma-function-args Some unofficial votes going either way... Let's open the voting to see where things fall.

Re: [PHP-DEV] idea: add wrapper support to mysqli_connect

2013-03-14 Thread Andrey Hristov
Hi, On 03/13/2013 10:09 PM, Thomas Anderson wrote: On Wed, Mar 13, 2013 at 3:37 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: On 03/13/2013 12:08 PM, Thomas Anderson wrote: Instead of passing localhost to mysqli_connect as the $host parameter I think it'd be useful if you could pass something

Re: [PHP-DEV] Fix for bug #63437

2013-03-14 Thread Derick Rethans
On Wed, 13 Mar 2013, Anatol Belski wrote: On Mon, 2013-03-11 at 11:42 +, Derick Rethans wrote: On Mon, 11 Mar 2013, Anatol Belski wrote: What is the way you had in the mind to achieve the string-integer conversions? atoll() (or atoq()). Please take a look at the

Re: [PHP-DEV] Fix for bug #63437

2013-03-14 Thread Anatol Belski
On Thu, March 14, 2013 12:42, Derick Rethans wrote: On Wed, 13 Mar 2013, Anatol Belski wrote: On Mon, 2013-03-11 at 11:42 +, Derick Rethans wrote: On Mon, 11 Mar 2013, Anatol Belski wrote: What is the way you had in the mind to achieve the string-integer conversions? atoll() (or

Re: [PHP-DEV] Re: [RFC] Allow trailing comma in function call argument lists

2013-03-14 Thread Peter Cowburn
On 14 March 2013 08:35, Sara Golemon poll...@php.net wrote: Some unofficial votes going either way... Let's open the voting to see where things fall. Don't forget to start a new thread, as described in the Voting RFC [1]. [1] https://wiki.php.net/rfc/voting#voting -- PHP Internals - PHP

Re: [PHP-DEV] feature request : easy shared memory

2013-03-14 Thread rene7705
great! :) this will do nicely. is there much overhead for storing and fetching these variables? (ideally I would like to get a pointer) On Thu, Mar 14, 2013 at 12:45 PM, Nikita Nefedov inefe...@gmail.com wrote: On Thu, 14 Mar 2013 07:05:03 -, rene7705 rene7...@gmail.com wrote: Hi.

Re: [PHP-DEV] Fix for bug #63437

2013-03-14 Thread Anatol Belski
On Thu, March 14, 2013 14:14, Anatol Belski wrote: On Thu, March 14, 2013 12:42, Derick Rethans wrote: On Wed, 13 Mar 2013, Anatol Belski wrote: On Mon, 2013-03-11 at 11:42 +, Derick Rethans wrote: On Mon, 11 Mar 2013, Anatol Belski wrote: What is the way you had in the mind to

Re: [PHP-DEV] feature request : easy shared memory

2013-03-14 Thread Lazare Inepologlou
Hello, 2013/3/14 rene7705 rene7...@gmail.com great! :) this will do nicely. is there much overhead for storing and fetching these variables? (ideally I would like to get a pointer) Unfortunately there is. Every object stored in APC has to be serialised first and then unserialised on

Re: [PHP-DEV] feature request : easy shared memory

2013-03-14 Thread Steve Clay
On 3/14/13 10:31 AM, rene7705 wrote: (ideally I would like to get a pointer) PHP's environment is torn down after every request, so no matter what the mechanism you generally can't store anything that can't be serialized. See also https://www.google.com/search?q=php+shared+memory Steve

Re: [PHP-DEV] feature request : easy shared memory

2013-03-14 Thread Bob Weinand
Am 14.3.2013 um 16:46 schrieb Lazare Inepologlou linep...@gmail.com: Hello, 2013/3/14 rene7705 rene7...@gmail.com great! :) this will do nicely. is there much overhead for storing and fetching these variables? (ideally I would like to get a pointer) Unfortunately there is. Every

[PHP-DEV] static type-references

2013-03-14 Thread Rasmus Schultz
Hey List, What do you think about adding a typeof() operator to PHP? It could go something like this: class User { public $name; } /** * @var ReflectionClass $user_type * @var ReflectionProperty $user_name_property */ $user_type = typeof(User);

Re: [PHP-DEV] static type-references

2013-03-14 Thread Etienne Kneuss
Dear Rasmus, On Thu, Mar 14, 2013 at 5:26 PM, Rasmus Schultz ras...@mindplay.dk wrote: Hey List, What do you think about adding a typeof() operator to PHP? It could go something like this: class User { public $name; } /** * @var ReflectionClass

[PHP-DEV] [VOTE] Trailing comma

2013-03-14 Thread Sara Golemon
Making this a new thread per rfc process: Voting is open on https://wiki.php.net/rfc/trailing-comma-function-args#vote -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] feature request : easy shared memory

2013-03-14 Thread Bob Weinand
Am 14.3.2013 um 18:14 schrieb Rasmus Lerdorf ras...@lerdorf.com: On 03/14/2013 09:13 AM, Bob Weinand wrote: And there is no possibility to store the zval as raw binary data like in memory (deep copy?) So that you only have to copy from ram? And replace the pointers to the place in the

Re: [PHP-DEV] feature request : easy shared memory

2013-03-14 Thread Larry Garfield
On 3/14/13 12:28 PM, Bob Weinand wrote: Am 14.3.2013 um 18:14 schrieb Rasmus Lerdorf ras...@lerdorf.com: On 03/14/2013 09:13 AM, Bob Weinand wrote: And there is no possibility to store the zval as raw binary data like in memory (deep copy?) So that you only have to copy from ram? And replace

Re: [PHP-DEV] static type-references

2013-03-14 Thread Steve Clay
On 3/14/13 12:26 PM, Rasmus Schultz wrote: Hey List, What do you think about adding a typeof() operator to PHP? gettype(), get_class(). If you wanted gettype() to return a classname instead of object, then you'd have to add reserved words for all the native types. Otherwise: class string

Re: [PHP-DEV] static type-references

2013-03-14 Thread Steve Clay
On 3/14/13 12:26 PM, Rasmus Schultz wrote: $user_type = typeof(User); I missed this. We'll soon have User::class. This may resolve to, e.g., 'Foo\User'. Steve Clay -- http://www.mrclay.org/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] feature request : easy shared memory

2013-03-14 Thread Rasmus Lerdorf
On 03/14/2013 09:13 AM, Bob Weinand wrote: And there is no possibility to store the zval as raw binary data like in memory (deep copy?) So that you only have to copy from ram? And replace the pointers to the place in the string? This must be possible I think. And should be faster. shmop

Re: [PHP-DEV] static type-references

2013-03-14 Thread Rasmus Schultz
Etienne, Thank you for taking the time to discuss this. It is certainly possible for static analyses to reason about literal strings. It is possible to make a qualified guess, but there are no guarantees - for example, with automated refactoring in PhpStorm, even when enabling the search for

Re: [PHP-DEV] Re: [RFC] Allow trailing comma in function call argument lists

2013-03-14 Thread Kris Craig
On Thu, Mar 14, 2013 at 6:32 AM, Peter Cowburn petercowb...@gmail.comwrote: On 14 March 2013 08:35, Sara Golemon poll...@php.net wrote: Some unofficial votes going either way... Let's open the voting to see where things fall. Don't forget to start a new thread, as described in the

RE: [PHP-DEV] Current Status of O+ on Windows

2013-03-14 Thread Matt Ficken
Earlier I had posted about testing O+ with Apache using Symfony's PhpUnit tests... I had an issue where it seems that test methods (which PhpUnit accesses using ReflectionMethod) were getting optimized out and replaced with an empty method (so all PhpUnit tests passed). I have now written a

[PHP-DEV] Website down?

2013-03-14 Thread Thomas Hruska
I'm getting a HTTP 500 Internal Server Error on the php.net homepage (http://www.php.net/) from my local machine and a computer in a completely different state on a different network. -- Thomas Hruska CubicleSoft President I've got great, time saving software that you might find useful.

Re: [PHP-DEV] Website down?

2013-03-14 Thread Ronald Chmara
Same from here. On Thu, Mar 14, 2013 at 8:43 PM, Thomas Hruska thru...@cubiclesoft.comwrote: I'm getting a HTTP 500 Internal Server Error on the php.net homepage ( http://www.php.net/) from my local machine and a computer in a completely different state on a different network. -- Thomas

Re: [PHP-DEV] Website down?

2013-03-14 Thread Levi Morrison
It happened to me for a moment but it's up for me now. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Website down?

2013-03-14 Thread Ferenc Kovacs
On Fri, Mar 15, 2013 at 4:43 AM, Thomas Hruska thru...@cubiclesoft.comwrote: I'm getting a HTTP 500 Internal Server Error on the php.net homepage ( http://www.php.net/) from my local machine and a computer in a completely different state on a different network. -- Thomas Hruska CubicleSoft