@@ -247,7 +247,7 @@ PHP_FUNCTION(password_needs_rehash)
247
247
if (Z_TYPE_PP (option_buffer ) != IS_LONG ) {
248
248
zval * cast_option_buffer ;
249
249
ALLOC_ZVAL (cast_option_buffer );
250
- INIT_PZVAL_COPY ( cast_option_buffer , * option_buffer );
250
+ MAKE_COPY_ZVAL ( option_buffer , cast_option_buffer );
251
251
convert_to_long (cast_option_buffer );
252
252
new_cost = Z_LVAL_P (cast_option_buffer );
253
253
zval_dtor (cast_option_buffer );
@@ -328,7 +328,7 @@ PHP_FUNCTION(password_hash)
328
328
if (Z_TYPE_PP (option_buffer ) != IS_LONG ) {
329
329
zval * cast_option_buffer ;
330
330
ALLOC_ZVAL (cast_option_buffer );
331
- INIT_PZVAL_COPY ( cast_option_buffer , * option_buffer );
331
+ MAKE_COPY_ZVAL ( option_buffer , cast_option_buffer );
332
332
convert_to_long (cast_option_buffer );
333
333
cost = Z_LVAL_P (cast_option_buffer );
334
334
zval_dtor (cast_option_buffer );
@@ -368,7 +368,7 @@ PHP_FUNCTION(password_hash)
368
368
case IS_OBJECT : {
369
369
zval * cast_option_buffer ;
370
370
ALLOC_ZVAL (cast_option_buffer );
371
- INIT_PZVAL_COPY ( cast_option_buffer , * option_buffer );
371
+ MAKE_COPY_ZVAL ( option_buffer , cast_option_buffer );
372
372
convert_to_string (cast_option_buffer );
373
373
if (Z_TYPE_P (cast_option_buffer ) == IS_STRING ) {
374
374
buffer = estrndup (Z_STRVAL_P (cast_option_buffer ), Z_STRLEN_P (cast_option_buffer ));
0 commit comments