diff options
| author | Andi Gutmans <andi@php.net> | 2003-12-05 16:28:54 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2003-12-05 16:28:54 +0000 |
| commit | f4d6a5c7cf1faa7e8d4b9f0bef3e4599d00ca7fc (patch) | |
| tree | 136f3e18ba34a4ab95533f135b04ff3630bf2ffe /Zend/zend_compile.c | |
| parent | a016546e4c6659b4283829b6e5f9100687b4e4c5 (diff) | |
| download | php-git-f4d6a5c7cf1faa7e8d4b9f0bef3e4599d00ca7fc.tar.gz | |
- Remove two unneeded convert_to_string() (found by Marcus)
- Change illegal use of string offset to E_ERROR
Diffstat (limited to 'Zend/zend_compile.c')
| -rw-r--r-- | Zend/zend_compile.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 53f25f4533..1cae6eab5f 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2913,7 +2913,7 @@ void zend_do_fetch_static_variable(znode *varname, znode *static_assignment, int znode result; ALLOC_ZVAL(tmp); - convert_to_string(&varname->u.constant); + if (static_assignment) { *tmp = static_assignment->u.constant; } else { @@ -3227,8 +3227,6 @@ void zend_do_declare_begin(TSRMLS_D) void zend_do_declare_stmt(znode *var, znode *val TSRMLS_DC) { - convert_to_string(&var->u.constant); - if (!zend_binary_strcasecmp(var->u.constant.value.str.val, var->u.constant.value.str.len, "ticks", sizeof("ticks")-1)) { convert_to_long(&val->u.constant); CG(declarables).ticks = val->u.constant; |
