Re: question regarding type hinting parameters of php functions (array_slice)

From: Date: Mon, 10 Dec 2007 05:40:04 +0000
Subject: Re: question regarding type hinting parameters of php functions (array_slice)
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-33893@lists.php.net to get a copy of this message
Right, that's what "l" parameter spec is doing, doesn't it? Why convert it manually?
Because it doesn't know the difference between NULL and 0 if it's a long.
And why this difference is important in array_slice()? I don't see anything in manual that says anything about NULLs. Could you explain?
One that doesn't break every script that didn't strictly stay with int over the last 8 years or so.
Errm... I still don't understand. Could you give code example? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#33893) next »