diff options
| author | Felipe Pena <felipe@php.net> | 2009-01-05 20:31:54 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2009-01-05 20:31:54 +0000 |
| commit | f8689552a4c7b210bbfef59a4a74dfb34bf809c4 (patch) | |
| tree | 6cad23dc4fdcc339bf38d6b7793cf915fe0108e5 /Zend/zend_execute.c | |
| parent | f0240a0382c7ac38144543965f7c45e57af54665 (diff) | |
| download | php-git-f8689552a4c7b210bbfef59a4a74dfb34bf809c4.tar.gz | |
MFH:
- Fixed bug #46701 (Creating associative array with long values in the key fails on 32bit linux)
Patch by Shire
Diffstat (limited to 'Zend/zend_execute.c')
| -rw-r--r-- | Zend/zend_execute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 5726ea6081..86c4c8cf6c 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -837,10 +837,10 @@ fetch_string_dim: } } break; - case IS_DOUBLE: - index = (long)Z_DVAL_P(dim); + case IS_DOUBLE: { + DVAL_TO_LVAL(Z_DVAL_P(dim), index); goto num_index; - + } case IS_RESOURCE: zend_error(E_STRICT, "Resource ID#%ld used as offset, casting to integer (%ld)", Z_LVAL_P(dim), Z_LVAL_P(dim)); /* Fall Through */ |
