Doc #54314 [Bgs]: Illogicalness

From: Date: Tue, 22 Mar 2011 05:03:42 +0000
Subject: Doc #54314 [Bgs]: Illogicalness
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6119@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 User updated by: oop at dr dot com Reported by: oop at dr dot com -Summary: Logical Flaw +Summary: Illogicalness Status: Bogus Type: Documentation Problem Package: Unknown/Other Function PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Changed Summary Previous Comments: ------------------------------------------------------------------------ [2011-03-19 11:43:10] rquadling@php.net 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. ------------------------------------------------------------------------ [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 (#6119) next »