Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Restored PHP 5.2 compatibility.

git-svn-id: http://svn.php.net/repository/pecl/rar/trunk@307252 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit bf0df5d1edcdcbd1f02a5daf263039d09aa5e11f 1 parent 010ca98
cataphract authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 rararch.c
4 rararch.c
@@ -351,7 +351,7 @@ static int rararch_dimensions_preamble(rar_file_t *rar,
351 351 return FAILURE;
352 352 }
353 353
354   - *index = zend_dval_to_lval(d);
  354 + *index = (long) d;
355 355 }
356 356 }
357 357 else if (Z_TYPE_P(offset) == IS_DOUBLE) {
@@ -360,7 +360,7 @@ static int rararch_dimensions_preamble(rar_file_t *rar,
360 360 "Dimension index is out of integer bounds");
361 361 return FAILURE;
362 362 }
363   - *index = zend_dval_to_lval(Z_DVAL_P(offset));
  363 + *index = (long) Z_DVAL_P(offset);
364 364 }
365 365 else if (Z_TYPE_P(offset) == IS_OBJECT) {
366 366 if (Z_OBJ_HT_P(offset)->get) {

0 comments on commit bf0df5d

Please sign in to comment.
Something went wrong with that request. Please try again.