[development] Seg fault in PHP (FormsAPI)? Can you reproduce?

Sammy Spets sammys-drupal at synerger.com
Thu Apr 27 11:10:40 UTC 2006


Yeah I understand that. I'm interested in finding out why :) Also, isn't
it better if form API handles this gracefully?

-- 
Sammy Spets
Synerger Pty Ltd
http://www.synerger.com/

On 27-Apr-06 12:20, Gerhard Killesreiter wrote:
> 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.
> 
> Cheers,
>    Gerhard


More information about the development mailing list