File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1444,15 +1444,18 @@ bool pdo_hash_methods(pdo_dbh_object_t *dbh_obj, int kind)
1444
1444
}
1445
1445
}
1446
1446
if (new_name ) {
1447
- zend_attribute * attr = zend_add_function_attribute (func_p ,
1448
- ZSTR_KNOWN (ZEND_STR_DEPRECATED_CAPITALIZED ), 2 );
1447
+ uint32_t flags = dbh -> is_persistent ? ZEND_ATTRIBUTE_PERSISTENT : 0 ;
1448
+ zend_attribute * attr = zend_add_attribute (
1449
+ & func_p -> common .attributes ,
1450
+ ZSTR_KNOWN (ZEND_STR_DEPRECATED_CAPITALIZED ),
1451
+ 2 , flags , 0 , 0 );
1449
1452
1450
1453
attr -> args [0 ].name = ZSTR_KNOWN (ZEND_STR_SINCE );
1451
1454
ZVAL_STR (& attr -> args [0 ].value , ZSTR_KNOWN (ZEND_STR_8_DOT_5 ));
1452
1455
1453
1456
char * message ;
1454
1457
size_t len = zend_spprintf (& message , 0 , "use %s() instead" , new_name );
1455
- zend_string * message_str = zend_string_init_interned (message , len , true );
1458
+ zend_string * message_str = zend_string_init (message , len , dbh -> is_persistent );
1456
1459
efree (message );
1457
1460
1458
1461
attr -> args [1 ].name = ZSTR_KNOWN (ZEND_STR_MESSAGE );
You can’t perform that action at this time.
0 commit comments