久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      關(guān)于編譯安裝msgpack-php的方法

      關(guān)于編譯安裝msgpack-php的方法

      Msgpack 是一個(gè) PECL 擴(kuò)展,此擴(kuò)展提供用于與 MessagePack 序列化通信的 API。

      MessagePack 是一個(gè)基于二進(jìn)制高效的對(duì)象序列化類庫(kù),可用于跨語(yǔ)言通信。它可以像JSON那樣,在許多種語(yǔ)言之間交換結(jié)構(gòu)對(duì)象;但是它比JSON更快速也更輕巧。

      下載

      wget https://github.com/msgpack/msgpack-php/archive/msgpack-2.0.3.tar.gz

      解壓

      tar -zxvf msgpack-2.0.3.tar.gz   cd msgpack-php-msgpack-2.0.3/

      查看phpize文件路徑

      $ whereis phpize phpize: /usr/local/php-7.2.9/bin/phpize

      從源代碼編譯 

      $./configure $make && make install

      修改配置文件

      sudo vim /usr/local/php-7.2.9/etc/php.ini   // 增加以下擴(kuò)展 extension=msgpack.so

      重啟php-fpm 檢查是否安裝成功

      sudo systemctl restart php-fpm.service

      關(guān)于編譯安裝msgpack-php的方法

      官方簡(jiǎn)單案例 msgpack-test.php

      <?php $data = array(0=>1,1=>2,2=>3); $msg = msgpack_pack($data); var_dump($data); echo '----------------'; var_dump($msg);   $data = msgpack_unpack($msg); var_dump($data);

      運(yùn)行結(jié)果

      array(3) {   [0]=>   int(1)   [1]=>   int(2)   [2]=>   int(3) } ----------------string(4) "" array(3) {   [0]=>   int(1)   [1]=>   int(2)   [2]=>   int(3) }

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)