|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-16 09:45 UTC] sniper@php.net
[2006-01-16 10:12 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 05:00:01 2025 UTC |
Description: ------------ In C and most other programming languages it is possible to parse NULL as a reference parameter to a function (a NULL-Pointer). In PHP i need to allocate a variable, that can be given to the function. So there is no way to parse a NULL-Pointer. Reproduce code: --------------- <?php function bTest(&$paData) { if (is_null($paData)) { // cleanup return true; } // handle data return true; } bTest(NULL); ?> Expected result: ---------------- Should work Actual result: -------------- Fatal error: Cannot pass parameter 1 by reference in ...