Repository navigation
Commit cf19b26
committed
fix build with PHP 8.6: unserialize_callback_func is a zend_string
php-src commit c82acefe470 converted the PG(unserialize_callback_func)
global from char* to zend_string*, so msgpack_unserialize_class() no
longer compiles against PHP 8.6.
Mirror what ext/standard/var_unserializer.re does in 8.6: an empty ini
value is a non-NULL zero-length string and must still be treated as no
callback, and the name is duplicated rather than refcounted since the
ini string may be persistent.1 parent e0a6616 commit cf19b26
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
279 | 284 | | |
280 | 285 | | |
| 286 | + | |
281 | 287 | | |
282 | 288 | | |
283 | 289 | | |
284 | 290 | | |
285 | 291 | | |
286 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
287 | 296 | | |
| 297 | + | |
288 | 298 | | |
289 | 299 | | |
290 | 300 | | |
| |||
0 commit comments