您的位置 首页 php

关于编译安装msgpack-php的方法

关于编译安装msgpack-php的方法

Msgpack 是一个 PECL 扩展,此扩展提供用于与 MessagePack 序列化通信的 API。

MessagePack 是一个基于二进制高效的对象序列化类库,可用于跨语言通信。它可以像JSON那样,在许多种语言之间交换结构对象;但是它比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 phpizephpize: /usr/local/php-7.2.9/bin/phpize

从源代码编译 

$./configure$make && make install

修改配置文件

sudo vim /usr/local/php-7.2.9/etc/php.ini // 增加以下扩展extension=msgpack.so

重启php-fpm 检查是否安装成功

sudo systemctl restart php-fpm.service

b7c6d75701fdeb78db8db5cceb7c205.png

官方简单案例 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);

运行结果

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

更多php相关知识,请访问php教程!

以上就是关于编译安装msgpack-php的方法的详细内容,更多请关注求知技术网其它相关文章!

文章来源:智云一二三科技

文章标题:关于编译安装msgpack-php的方法

文章地址:https://www.zhihuclub.com/2096.shtml

关于作者: 智云科技

热门文章

评论已关闭

38条评论

  1. Also, ANOVA of the data showed that there are significant differences p max and AUC 0-t of both groups with p-values of 0

  2. A1C Blood Sugar Test You have options and we are here to help you find the best solution

  3. Unfortunately, many women are diagnosed with low progesterone because they are advised to check the level on day 21 of the cycle. This can also improve other PCOS symptoms like unwanted hair, acne, anxiety, and depression.

  4. FГ©mara is indicated for first line treatment of postmenopausal women with hormone receptor positive or unknown, locally advanced or metastatic breast cancer Think of perimenopause as a period of stress on the body

  5. PubMed 11070087, images, related citations Full Text There is a wide variation of BBI content among varieties of soybeans

  6. Maxwell cgxVrlaWLyxdj 5 29 2022 We here report critical roles of a novel druggable target, polypeptide N acetylgalactosaminyltransferase 6 GALNT6, which is upregulated in a great majority of breast cancers and encodes a glycosyltransferase responsible for initiating mucin type O glycosylation

  7. reviewed the literature on antidepressant related and antipsychotic related DILI and unsurprisingly noted that nefazodone, phenelzine, imipramine, duloxetine, trazodone, chlorpromazine, and clozapine were the most implicated agents, as all have been previously described 145

  8. The usual dose is 40 mg daily for a few weeks, then reduced to 20 mg daily for a few weeks, then, if desired, 10 mg daily after a week or two

  9. With the validation of the D351G assay system, we can now select estrogens, tamoxifen like, Ral like, and ICI 182, 780 like compounds by comparing the wild type transfectant with the D351Y and D351G transfectants

  10. was first in line Tuesday this morning at Brandywine Women s Health Association to enroll in the exchange Phytomedicine 1996; 3 113 9

  11. 7 Visual effects are described as light trails, flashes, or brief image persistence post flashbulb effect You could always do the research and go back to your source and make him out to be the fool that he is

  12. com 20 E2 AD 90 20Viagra 20For 20Sale 20Online 20In 20Canada 20 20Viagra 20Legal 20Ohne 20Rezept 20Bestellen viagra legal ohne rezept bestellen It is likely that jumbo loan servicing is more profitable than smaller loans and Freddie or Fannie loans and may be serviced by the originator com 20 E2 AD 90 20Viagra 20Tansiyon 20 20Viagra 20Jakarta 20Timur viagra jakarta timur Sony s Elysium, directed by Neill Blomkamp and starring Matt Damon, opened in line with expectations, but still debuted somewhat modestly for a 115 million action film

  13. Ophthalmology Color Vision Patient Care Photographic Equipment Fluorescein Angiography Powerpoint Depth Perception Medical Records Insurance Companies Keratometry

  14. Thus, the novel increased dosage of fulvestrant is a promising endocrine treatment option in all settings of breast cancer, and data for patients with early breast cancer are awaited in a short time frame The consumption of alcohol during treatment with WELLBUTRIN XL should be minimized or avoided

  15. 62 In a large, single blind study n 308, however, fosfomcyin was comparable to a single dose of TMP SMX 1 The net effect of these carbometalations is the regiocontrolled anti addition of the Grignard component relative to 9 a Millar, R

  16. Here, the mice treated with propranolol demonstrated significantly lower cadaverine leakage into the cerebellum tissue 24

  17. Hematology Amsterdam, Netherlands, 4 3, 195 209 Flavonoids of puerarin versus tanshinone II A for ischemic stroke a randomized controlled trial

  18. Unit activity was amplified and digitally displayed using Powerlab A D Instruments and Spike2 software CED Instruments

  19. Torsemide package insert A better option is to get thiamine from wild caught fish, especially types like herring and salmon

  20. Conjugate moieties include but are not limited to lipid moieties such as a cholesterol moiety Letsinger et al I m taking a cycle off and I started getting some O signs at cd 7

  21. Over the course of your lifetime, if the atypical hyperplasia cells accumulate in the milk ducts or lobules and become more abnormal, this can transition into noninvasive breast cancer carcinoma in situ or invasive breast cancer

  22. There is little doubt that the most effective treatment for infertility associated with endometriosis is in- vitro fertilization IVF Pecorelli S Revised FIGO staging for carcinoma of the vulva, cervix, and endometrium

  23. for instance, signs ask people to close doors softly because loud bangs still bring on flashbacks, nearly a year after a gunman opened fire inside the Sandy Hook Elementary School 3 eye drops over the counter Just wish the race was two laps longer, said Busch, who won Saturday s Nationwide Series race at NHMS under similar circumstances after outlasting the field following a maximum attempt at three green white checkered finishes

  24. 779 for E MTAB 365 and 6 This chapter provides a brief overview of the basic science related to osteolysis; the mechanism of generation, consequences and clinical implications of different types of wear particulates; and the future trends in clinical and basic science research to mitigate or circumvent osteolysis

网站地图