Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PHP is awesome

Name: Anonymous 2007-08-28 17:56 ID:xY3vpdBA

This is how you create a anonymous function in PHP:

$newfunc = create_function('$a,$b', 'return "ln($a) + ln($b) = " . log($a * $b);');


Name: Anonymous 2007-08-30 13:31 ID:Xqzm1rko

>>32
It's not noticeably slow if you don't abuse it. Of course, you can't expect for ($i = 100000; --$i; lambda(...)); to work decently.

It's not insecure, it's unsafe. There's no problem with security, but it's a piece of shit to write and you can fail it at write time.

>>33
Ignoring the gaping security holes of create_function
Care to explain what do you call a security hole?

>>32-33
Same person

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List