Login   Register  
PHP Classes
elePHPant
Icontem

You are using eval to add a function after you loading the co...

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Dynamic Methods  >  All threads  >  You are using eval to add a function after you loading the co...  >  (Un) Subscribe thread alerts  
Subject:You are using eval to add a function after you loading the co...
Summary:Package rating comment
Messages:1
Author:Theo de Beo
Date:2011-03-02 23:36:48
 

Theo de Beo rated this package as follows:

Utility: Insufficient
Consistency: Sufficient
Documentation: Sufficient
Examples: Sufficient

  1. You are using eval to add a function after you loading the co...   Reply  
Picture of Theo de Beo
Theo de Beo
2011-03-02 23:36:53
You are using eval to add a function after you loading the code from a file.
Althought, this can be dangerous, you can better use the create_function method of php. Also, it is not suitable for large objects because it loads every function from a file. I cannot see the benefit to this, can you?