PHP Classes

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

Recommend this page to a friend!

      Dynamic Methods  >  All threads  >  You are using eval to add a function...  >  (Un) Subscribe thread alerts  
Subject:You are using eval to add a function...
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...   Reply   Report abuse  
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?