Commit b066ac0
committed
Fix phpGH-18431: Registering ZIP progress callback twice doesn't work
Libzip already cleans up the previous callback, so when that means:
1. The callback zval being already copied over the previous one causes
libzip to clean up the new callback object. This is the root cause.
2. Our own code to clean the old callback is redundant.
Closes phpGH-18432.1 parent a91d913 commit b066ac0
3 files changed
+28
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3048 | 3048 | | |
3049 | 3049 | | |
3050 | 3050 | | |
3051 | | - | |
3052 | | - | |
3053 | | - | |
3054 | 3051 | | |
3055 | | - | |
3056 | 3052 | | |
3057 | 3053 | | |
3058 | 3054 | | |
| 3055 | + | |
3059 | 3056 | | |
3060 | 3057 | | |
3061 | 3058 | | |
| |||
3093 | 3090 | | |
3094 | 3091 | | |
3095 | 3092 | | |
3096 | | - | |
3097 | | - | |
3098 | | - | |
3099 | 3093 | | |
3100 | | - | |
3101 | 3094 | | |
3102 | 3095 | | |
3103 | 3096 | | |
| 3097 | + | |
3104 | 3098 | | |
3105 | 3099 | | |
3106 | 3100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments