重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

php5.4.13版本bug报错

安装出现 error: ‘struct gdIOCtx’ has no member named ‘data’  

创新互联是一家专注于做网站、成都做网站与策划设计,博罗网站建设哪家好?创新互联做网站,专注于网站建设十载,网设计领域的专业建站公司;建站业务涵盖:博罗等地区。博罗做网站价格咨询:18982081108

vi /include/gd_io.h

typedef struct gdIOCtx

{

  int (*getC) (struct gdIOCtx *);

  int (*getBuf) (struct gdIOCtx *, void *, int);

  void (*putC) (struct gdIOCtx *, int);

  int (*putBuf) (struct gdIOCtx *, const void *, int);

  /* seek must return 1 on SUCCESS, 0 on FAILURE. Unlike fseek! */

  int (*seek) (struct gdIOCtx *, const int);

  long (*tell) (struct gdIOCtx *);

  void (*gd_free) (struct gdIOCtx *);

}

括号内增加  void (*data); 

php动态增加模块

cd {php安装文件路径}/root/repo/php-5.4.11/ext/gettext

 

/usr/local/php/bin/phpize

 

./configur –with-php-config=/usr/local/php/bin/php-config

 

make && make install 

重起apache

 

apachectl stop

 

apachectl start

 

cd /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/

ls |grep gettext

gettext.so

vi /usr/local/php/lib/php.ini

在加载模块的地加上一行extension=gettext.so 


网站标题:php5.4.13版本bug报错
本文网址:http://cqcxhl.cn/article/ppepcs.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP