Hello,
A soft memory limit could be very useful; it doesn't necessarily need to throw
an error, but it would provide an opportunity to free some memory and prevent
the script from crashing. Perhaps something like:
// function to call when memory is running out
register_memory_limit_handler('
--- Jim Wilson <[EMAIL PROTECTED]> wrote:
> > Lexical anonymous functions would be enough for me. If these proposed
> > lexical anonymous functions could automagically bind themselves
> > to an instance's $this when called from within an object's scope (so as to
> act
> > as virtual methods), tha
--- Sean Coates <[EMAIL PROTECTED]> wrote:
> > I'm not arguing the preservation of the exact value of $rev when the
> > anonymous function was created (as would be the case with a closure).
> > I'm thinking of the variable being whatever is defined in the parent
> > regardless. As in my proposal,
room to improve PHP's OO capabilities for PHP6, and
singletons are a good start.
regards,
Peter
> Scott
>
>
> -Original Message-
> From: Peter Hodge [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 6 March 2007 3:55 PM
> To: [EMAIL PROTECTED]; 'G
Also posted in the bug report:
Perhaps some nicer solutions to your got-cha's:
- What happens when $members = new members() is called
If the class is defined as a singleton, then PHP should create the
instance as
normal (this includes calling __construct() ) and store it in the hash
table,
or
--- Antony Dovgal <[EMAIL PROTECTED]> wrote:
> On 02/19/2007 02:23 PM, Peter Hodge wrote:
> > Hello,
> >
> > Does that fix the problem where:
> >
> > $object->theArray[] = (...);
> >
> > is invalid when 'theArray' is implemen
Hello,
Does that fix the problem where:
$object->theArray[] = (...);
is invalid when 'theArray' is implemented using __get()?
Whoever fixes that one could get all free drinks at PHP conferences:
PHP Hacker: "Hi, I'm the guy who made it so you can add items to an array which
is returned throu
Hello,
This patch for 5.2 provides an alternative error when you accidentally call
__get() recursively when trying to access some property of a class.
Currently, PHP says:
"Notice: Undefined property: someClass::$someProperty"
which makes it seem as though __get() is not called at all. This p
--- Stanislav Malyshev <[EMAIL PROTECTED]> wrote:
> >>> >>> function foo()
> >>> {
> >>>return array(1,2,3,4,5,6);
> >>> }
> >>>
> >>> echo foo()[4]; // < it that
>
> It looks a bit perl-ish indeed but I don't see much trouble in having
> that it people really need it...
I think 'fo
--- Derick Rethans <[EMAIL PROTECTED]> wrote:
> On Sat, 28 Oct 2006, Peter Hodge wrote:
>
> > Hello everyone,
> >
> > I am in the process of updating the PHP syntax file for Vim, and I need to
> > gather a list of all built-in PHP functions, constants, class
Hello everyone,
I am in the process of updating the PHP syntax file for Vim, and I need to
gather a list of all built-in PHP functions, constants, classes, interfaces,
and preferably also the methods and class-constants from said built-in classes
and interfaces.
First I used my PHP's get_defined_
11 matches
Mail list logo