php安装xmlwriter遇到报错及解决方法

时间:2023-03-09 18:38:29
php安装xmlwriter遇到报错及解决方法
Q1:make的时候报' error: 'zend_class_entry' has no member named 'default_properties''错误,

  A:把 错误行C文件中default_properties 改成 default_properties_table 

Q2 : ./configure 时候提示 'configure: error: xml2-config not found. Please check your libxml2 installation'  

  A:重新安装  libxml2和libxml2-devel 

  yum install libxml2

  yum install libxml2-devel -y

Q3 : 提示 'ZEND_....'之类的字符错误,xmlwriter版本不兼容,

    A:下载和当前安装Php的版本对应的xmlwriter即可,ps:最好是使用当前php安装包ext中packge安装兼容性不会出问题