12345678910111213141516171819202122232425262728 |
- <?php
- namespace loyalsoft;
- include __DIR__ . '/main.php';
- //require_once ROOTDIR . '/Util/OpenSSLVerify.php'; # Ps. 这个文件和类名没有对应关系.
- //header('X-Accel-Buffering: no'); # nginx 控制头, 关闭buffer
- //set_time_limit(15); # 设置执行超时时间
- echoLine("phpver:" . PHP_VERSION);
- class ABC extends HashSaver {
- public $name;
- public $age = 35;
- public function __construct($args) {
- parent::__construct($args);
- // $this->LoadFrom(array('name' => "wanggangzero"));
- }
- }
- $arr = array(
- 'name' => '王刚'
- );
- $obj = new ABC($arr);
- var_dump($obj);
- $obj->updateData("test-hash");
|