Ejemplo n.º 1
0
 /**
  * Checks if a function can be promoted to a static function call
  *
  * @param Call $call
  * @param string $functionName
  * @return boolean
  */
 public function canBeInternal($call, $functionName)
 {
     $reflector = $call->getReflector($functionName);
     if ($reflector) {
         if ($reflector->isInternal()) {
             switch ($reflector->getExtensionName()) {
                 case 'standard':
                 case 'Core':
                 case 'pcre':
                     return true;
                 default:
                     break;
             }
         }
     }
     return false;
 }