diff options
| author | Andi Gutmans <andi@php.net> | 2002-11-20 18:00:23 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2002-11-20 18:00:23 +0000 |
| commit | 227f7838d6555b13a322829d786d8b38ac299e86 (patch) | |
| tree | e24506a95c0bb02643ebca34cd5ce8a01cf6a07d /Zend/zend_compile.c | |
| parent | a257d758a5b71a0513b63360e64c38220aeab4c3 (diff) | |
| download | php-git-227f7838d6555b13a322829d786d8b38ac299e86.tar.gz | |
- Fix build (thanks Marcus)
- Implement abstract methods, syntax:
- abstract function foo($vars);
- I don't see any reason why modifiers such as static/public need to be
- used with abstract. PHP is weakly typed and there would be no meaning to
- this anyway. People who want a strictly typed compiled language are
- looking in the wrong place.
Diffstat (limited to 'Zend/zend_compile.c')
| -rw-r--r-- | Zend/zend_compile.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index aa31534db4..d0b6d65e91 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -378,6 +378,15 @@ void zend_do_echo(znode *arg TSRMLS_DC) SET_UNUSED(opline->op2); } +void zend_do_abstract_method(TSRMLS_D) +{ + zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); + + opline->opcode = ZEND_RAISE_ABSTRACT_ERROR; + SET_UNUSED(opline->op1); + SET_UNUSED(opline->op2); +} + void zend_do_assign(znode *result, znode *variable, znode *value TSRMLS_DC) { |
