Internals2/opcodes/add-interface-Phpdoc专题

ADD_INTERFACE

PHP code

<?php 
/*
 * adds an implemented interface to a class declaration
 * opcode number: 144
 */
interface iA {
}

class A implements iA {
}
?>

PHP opcodes

Function name: (null)

Compiled variables: none

line # op fetch ext return operands
6 0 NOP        
  1 DECLARE_CLASS       'a'
  2 ADD_INTERFACE       'iA'
  3 VERIFY_ABSTRACT_CLASS        
  3 RETURN       1

本站为非盈利网站,作品由网友提供上传,如无意中有侵犯您的版权,请联系删除