Browse Source

php : minor

Franco Ponticelli 14 years ago
parent
commit
aaf36beffe
1 changed files with 5 additions and 4 deletions
  1. 5 4
      std/php/Boot.hx

+ 5 - 4
std/php/Boot.hx

@@ -7,10 +7,6 @@ class Boot {
 	static var skip_constructor = false;
 	static var skip_constructor = false;
 	static function __init__() : Void {
 	static function __init__() : Void {
 		untyped __php__("
 		untyped __php__("
-function _hx_is_numeric($v)
-{
-	return is_numeric($v) && !is_string($v);
-}
 function _hx_add($a, $b) {
 function _hx_add($a, $b) {
 	if (!_hx_is_numeric($a) || !_hx_is_numeric($b)) {
 	if (!_hx_is_numeric($a) || !_hx_is_numeric($b)) {
 		return $a . $b;
 		return $a . $b;
@@ -380,6 +376,11 @@ function _hx_is_lambda($s) {
 	return (is_string($s) && substr($s, 0, 8) == chr(0).'lambda_') || (is_array($s) && count($s) > 0 && (is_a($s[0], '_hx_lambda') || is_a($s[0], '_hx_lambda2')));
 	return (is_string($s) && substr($s, 0, 8) == chr(0).'lambda_') || (is_array($s) && count($s) > 0 && (is_a($s[0], '_hx_lambda') || is_a($s[0], '_hx_lambda2')));
 }
 }
 
 
+function _hx_is_numeric($v)
+{
+	return is_numeric($v) && !is_string($v);
+}
+
 function _hx_last_index_of($s, $value, $startIndex = null) {
 function _hx_last_index_of($s, $value, $startIndex = null) {
 	$x = strrpos($s, $value, $startIndex === null ? null : strlen($s) - $startIndex);
 	$x = strrpos($s, $value, $startIndex === null ? null : strlen($s) - $startIndex);
 	if($x === false)
 	if($x === false)