- // Run it. This will create an instance to the current class
- eval($eval);
-
- // Is the instance valid? We have the stream handler here
- if ((!is_null($tempInstance)) && (method_exists($tempInstance, 'compressStream')) && (method_exists($tempInstance, 'decompressStream'))) {
- // Okay, this handler is valid
- $cInstance->setCompressor($tempInstance);
-
- // No more searches required because we have found a valid compressor stream
- break;
- }
- }
- }