Doc #77034 [Opn]: Casting null to int undefined

From: Date: Thu, 18 Oct 2018 17:44:01 +0000
Subject: Doc #77034 [Opn]: Casting null to int undefined
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16088@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77034&edit=1 ID: 77034 Updated by: requinix@php.net Reported by: casey dot mcginty at gmail dot com Summary: Casting null to int undefined Status: Open Type: Documentation Problem -Package: Documentation problem +Package: Variables related PHP Version: 7.2.11 Block user comment: N Private report: N New Comment: Are you actually asking that question or just implying you'd like the docs to say it? Previous Comments: ------------------------------------------------------------------------ [2018-10-18 17:36:16] casey dot mcginty at gmail dot com Description: ------------ --- From manual page: http://www.php.net/language.types.integer --- I do not see any documentation regarding a null cast to an int. What is the official behavior? Test script: --------------- $myInt = (int)null; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77034&edit=1

« previous php.doc.bugs (#16088) next »