[development] Seg fault in PHP (FormsAPI)? Can you reproduce?
gerhard at killesreiter.de
Thu Apr 27 10:20:28 UTC 2006
Sammy Spets wrote:
> Hi everyone,
> I've just run into a segfault situation during development of a form
> element. Basically, all I changed from a working system was add a new
> form element and accidentally left something off one of the child
> element definitions. Here is a code snippet you can drop into a module
> and see if you can reproduce it.
I am pretty sure I could. Your code omitted the key for the form
element. form API doesn't like this (or wrong keys for that matter). No
idea why php crashes because of this, but in any way: Your code is
broken, fix it and it wont crash anymore.
More information about the development