Re: Accept null type hint in C

From: Date: Thu, 27 Oct 2005 18:35:12 +0000
Subject: Re: Accept null type hint in C
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-19766@lists.php.net to get a copy of this message
Marcus Boerger wrote:
Hello Bob, that's definitively wrong, actually there must be something wrong with your code. The '|' is to ensure that the parameter is optional. Thus if you moit the param it's return value is untouched which means you have to initaialize the returned zval * to null before passing its address to the parsing functions. The only way "unknown" gets send back is when you use an unhandled spec. But you are using "O" or did you actually missread and took zero? (which would be plain bullshit) marcus Thursday, October 27, 2005, 5:47:36 PM, you wrote:
I tried the "|!O" and that really hoses things. Isn't it supposed to be |O! ?
Rob

« previous php.internals (#19766) next »