Doc #54314 [Opn->Bgs]: Logical Flaw

From: Date: Sat, 19 Mar 2011 10:43:10 +0000
Subject: Doc #54314 [Opn->Bgs]: Logical Flaw
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6105@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54314&edit=1 ID: 54314 Updated by: rquadling@php.net Reported by: oop at dr dot com Summary: Logical Flaw -Status: Open +Status: Bogus Type: Documentation Problem Package: Unknown/Other Function PHP Version: Irrelevant Block user comment: N Private report: N New Comment: The default is case sensitive (CONSTANT !== constant), so the $case_insensitive's default value is false. To make the constant case insensitive (CONSTANT === constant), then you need to supply true for $case_insensitive. Previous Comments: ------------------------------------------------------------------------ [2011-03-19 11:30:41] oop at dr dot com Description: ------------ --- From manual page: http://www.php.net/function.define#Parameters --- You stated: bool define ( string $name , mixed $value [, bool $case_insensitive = false ] ) This contradicts another statement: The default behavior is case-sensitive Test script: --------------- bool define ( string $name , mixed $value [, bool $case_insensitive = false ] ) This contradicts another statement: The default behavior is case-sensitive Expected result: ---------------- bool define ( string $name , mixed $value [, bool $case_insensitive = true ] ) The default behavior is case-sensitive OR... bool define ( string $name , mixed $value [, bool $case_insensitive = false ] ) The default behavior is not case-sensitive Actual result: -------------- bool define ( string $name , mixed $value [, bool $case_insensitive = false ] ) The default behavior is case-sensitive ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54314&edit=1

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