Doc #66668 [NEW]: Function names are case-sensitive for chars with codes 127-255

From: Date: Fri, 07 Feb 2014 20:54:35 +0000
Subject: Doc #66668 [NEW]: Function names are case-sensitive for chars with codes 127-255
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10961@lists.php.net to get a copy of this message
From:             mail at mkharitonov dot net
Operating system: Mac OS X 10.8.5
PHP version:      5.5.9
Package:          Documentation problem
Bug Type:         Documentation Problem
Bug description:Function names are case-sensitive for chars with codes 127-255

Description:
------------
Manual page: http://www.php.net/manual/en/functions.user-defined.php

Actual text: "Function names are case-insensitive, ...".

Expected text: "Function names are case-insensitive for A-Z chars and
case-sensitive for chars with codes from 127 through 255 (0x7f-0xff),
...".

Test script:
---------------
<?php
/* File charset is "windows-1251" */
function english() { print 'ok '; }
english();
ENGLISH();

function кириллица() { print 'ok '; }
кириллица();
КИРИЛЛИЦА();

Expected result:
----------------
ok ok ok ok 

Actual result:
--------------
ok ok ok 
Fatal error: Call to undefined function КИРИЛЛИЦА() in ... on
line 9

-- 
Edit bug report at https://bugs.php.net/bug.php?id=66668&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=66668&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=66668&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=66668&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=66668&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=66668&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=66668&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=66668&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=66668&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=66668&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=66668&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=66668&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=66668&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=66668&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66668&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=66668&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=66668&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=66668&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66668&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=66668&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=66668&r=mysqlcfg



Thread (4 messages)

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