Re: [ZEND-ENGINE-CVS] Zend Opcode

From: Date: Wed, 28 May 2008 14:58:16 +0000
Subject: Re: [ZEND-ENGINE-CVS] Zend Opcode
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-6749@lists.php.net to get a copy of this message
Hello, Take a look at Zend/zend_vm_def.h which defines how the opcodes will get executed depending on their operands types. This zend_vm_def.h is used to generate (using zend_vm_gen.php, not automatically) zend_vm_execute.h which is the actual code being run. Regards On Wed, May 28, 2008 at 3:49 PM, Matteo Tamborini <teotambox@gmail.com> wrote: > In what way (in what file of zend source file list) i can find a c > implementation of a opcode? > > i mean.. > > in e.g i have a ZEND_INIT_ARRAY; for this i understand that: > > Initializes an array with none or one element. > > Op1: Key of the first element or null > Op2: Value of the first element or null > Result: Array variable (!!!) > > Example: > > $arr = array(); > $arr = array(1 => 2, 3 => 4); > > Gives: > > 0x9BF7F8 ZEND_INIT_ARRAY -, - => ~0 > 0x9BF8B8 ZEND_INIT_ARRAY 2, 1 => ~2 > > where i can find a (c) definition of the ZEND_INIT_ARRAY? > -all the operation that zend engine really do just before to translate the > operation in one bytecode (INIT_ARRAY in this case). > -- Etienne Kneuss http://www.colder.ch Men never do evil so completely and cheerfully as when they do it from a religious conviction. -- Pascal

« previous php.zend-engine.cvs (#6749) next »