快上网专注成都网站设计 成都网站制作 成都网站建设
成都网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

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://6mz.cn/article/ppepcs.html

其他资讯