Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1162795
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Sep 21, 12:28 AM
Size
2 KB
Mime Type
text/x-diff
Expires
Tue, Sep 23, 12:28 AM (6 m, 28 s)
Engine
blob
Format
Raw Data
Handle
752368
Attached To
rINP In-Portal
in-portal
View Options
Index: branches/RC/core/kernel/utility/multibyte.php
===================================================================
--- branches/RC/core/kernel/utility/multibyte.php (revision 10122)
+++ branches/RC/core/kernel/utility/multibyte.php (revision 10123)
@@ -1,54 +1,54 @@
<?php
if (!function_exists('mb_internal_encoding')) {
function mb_internal_encoding ($encoding = null) {
}
// substr|substr_count|strtoupper|strtolower|strstr|strrpos|strpos|strlen
function mb_substr ($str, $start, $length = null, $encoding = null)
{
- return substr($str, $start, $length);
+ return isset($length) ? substr($str, $start, $length) : substr($str, $start);
}
function mb_substr_count ($haystack, $needle, $encoding = null)
{
return substr_count($haystack, $needle);
}
function mb_strtoupper ($str, $encoding = null)
{
return strtoupper($str);
}
function mb_strtolower ($str, $encoding = null)
{
return strtolower($str);
}
function mb_strstr ($haystack, $needle, $part = false, $encoding = null)
{
return strstr($haystack, $needle);
}
function mb_strrpos ($haystack, $needle, $offset = null, $encoding = null)
{
- return strrpos($haystack, $needle, $offset);
+ return isset($offset) ? strrpos($haystack, $needle, $offset) : strrpos($haystack, $needle);
}
function mb_strpos ($haystack, $needle, $offset = null, $encoding = null)
{
- return strpos($haystack, $needle, $offset);
+ return isset($offset) ? strpos($haystack, $needle, $offset) : strpos($haystack, $needle);
}
function mb_strlen ($str, $encoding = null)
{
return strlen($str);
}
}
?>
\ No newline at end of file
Property changes on: branches/RC/core/kernel/utility/multibyte.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.1.4.1
\ No newline at end of property
+1.1.4.2
\ No newline at end of property
Index: branches/RC
===================================================================
--- branches/RC (revision 10122)
+++ branches/RC (revision 10123)
Property changes on: branches/RC
___________________________________________________________________
Modified: svn:ignore
## -1,5 +1,6 ##
config.php*
debug.php
+custom
testing
silent_log.txt
.htaccess
Event Timeline
Log In to Comment