Re: (non)growing memory while creating anoymous functions via eval()

From: Date: Sun, 03 Feb 2013 18:31:15 +0000
Subject: Re: (non)growing memory while creating anoymous functions via eval()
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-65578@lists.php.net to get a copy of this message
2013/2/3 Sebastian Bergmann <sebastian@php.net>

> Am 03.02.2013 18:07, schrieb Sebastian Bergmann:
> > Can you explain why you are using eval() instead of a real anonymous
> > function? Thanks!
>
>  Please ignore my email; I mixed up create_function() and eval(). Then
>  again, your code still does not make sense to me ...
>

Don't know, how create_function() works internally, but it seems, that they
at least act quite similar

<?php
create_function('','}echo "Foo";{'); // "Foo"

http://codepad.viper-7.com/h6NQfO


>
> --
> Sebastian Bergmann                    Co-Founder and Principal Consultant
> http://sebastian-bergmann.de/                      
>     http://thePHP.cc/
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
github.com/KingCrunch


Thread (15 messages)

« previous php.internals (#65578) next »