symisc / PH7

An Embedded Implementation of PHP (C Library)
http://ph7.symisc.net
Other
493 stars 68 forks source link

fix incorrect sizeof usage #39

Open szsam opened 1 year ago

szsam commented 1 year ago

sizeof(ctx) evaluates to the size of the pointer type, which is not what we want. We should zero the struct that ctx points to.