<?php require __DIR__ . "/../vendor/autoload.php"; register_primitive_type_handler('string', 'Spl\\Scalars\\StringHandler'); register_primitive_type_handler('int', 'Spl\\Scalars\\IntegerHandler'); register_primitive_type_handler('float', 'Spl\\Scalars\\FloatHandler'); register_primitive_type_handler('array', 'Spl\\Scalars\\ArrayHandler'); register_primitive_type_handler('null', 'Spl\\Scalars\\NullHandler'); register_primitive_type_handler('bool', 'Spl\\Scalars\\BooleanHandler');
<?php require_once dirname(__DIR__) . '/vendor/autoload.php'; register_primitive_type_handler('string', 'superhandlers\\StringHandler'); register_primitive_type_handler('null', 'superhandlers\\NullHandler'); register_primitive_type_handler('bool', 'superhandlers\\BoolHandler'); register_primitive_type_handler('int', 'superhandlers\\IntHandler'); register_primitive_type_handler('float', 'superhandlers\\FloatHandler'); register_primitive_type_handler('array', 'superhandlers\\ArrayHandler'); register_primitive_type_handler('resource', 'superhandlers\\ResourceHandler');
<?php include __DIR__ . '/string.php'; register_primitive_type_handler('string', 'str\\Handler');
// A function used in the OOP wrapping of third-party components. function _is_non_tp_call() { static $s_thirdPartyAbsDp; if (!isset($s_thirdPartyAbsDp)) { $s_thirdPartyAbsDp = realpath($GLOBALS["PHRED_PATH_TO_THIRD_PARTY"]); } $backTrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2); if (count($backTrace) < 2) { return true; } return strpos($backTrace[1]["file"], $s_thirdPartyAbsDp) !== 0; } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // If xdebug is used, tell it that the recursion depth of 100 is not always enough. ini_set("xdebug.max_nesting_level", 4096); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Ready to initialize the framework. CSystem::initializeFramework(); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Register the aliases for the core classes. $GLOBALS["PHRED_CLASS_ALIASES"] = CConfiguration::option("classaliases"); foreach ($GLOBALS["PHRED_CLASS_ALIASES"] as $className => $alias) { class_alias($className, $alias, true); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Import OOP methods for the string type. if (function_exists("register_primitive_type_handler")) { register_primitive_type_handler("string", "CUStringObject"); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -