• 标签云
  • 读者墙
  • RSS订阅
勤记录 懂分享

杂草猿工记

  • 首页
  • 留言板

yar 返回unpack error at offset 2944 of 30775 bytes相关问题

2025-12-05 草上飞 php 18 0

项目好好的,有人改了新开发的接口发现报错了


unpack error at offset 2944 of 30775 bytes


一开始以为是内存炸了,细看不对劲,这是yar扩展报错。


原来那个接口返回了一个对象数组(thinkphp的数组)


解决方法也是很简单,直接返回数组就行,比如

$this->model->data_get($where, $field, $order)?->toArray();


标签: php thinkphp

相关推荐

  • 支付宝网页支付openssl_sign(): Supplied key param cannot be coerced into a private key
  • php生成的zip文件添加一个加密密码,两种方式
  • php对字符串编号排序,如3.1.1到3.1.2,自定义函数对比每个位置的数值即可
  • 一个在线更新web、h5的php文件,简单易用,和常用的ftp、git有些区别,本方法对于安装包管理较好
  • thinkphp融合workerman的两种简单方式,直接在workerman里面用tp的orm功能
  • 用php根据头像数组生成群头像
  • thinkphp 高级查询写法,通二级分类名称查询三级商品,通过where直接写function
  • 用PHP把数值转换为人民币大写,这个方法才有效

评论/留言

  • 统计信息
  • 联系站长

日志总数:544篇

网站运行: 3472 天

QQ:2719875001

Email:wei@alipay168.cn

热文列表

  • navicat 优化使用技巧,工具出现“rsa public key not find”解决 2021-06-29 14 20989
    navicat 优化使用技巧,工具出现“rsa public key not find”解决
  • Linux启动xxx服务报错:Failed to start xxx.service: Unit not found解决 2022-11-18 12 15885
    Linux启动xxx服务报错:Failed to start xxx.service: Unit not found解决
  • 谷歌浏览器在https网站禁止访问http资源的显示问题处理 2021-04-09 11 15007
    谷歌浏览器在https网站禁止访问http资源的显示问题处理
  • 醋酸铅和碱式醋酸铅沉淀的原理 2016-11-07 01 14981
    醋酸铅和碱式醋酸铅沉淀的原理
  • gromacs之pbc显示完整分子和使用VMD的pbc命令显示完整分子 2017-05-03 20 14773
    gromacs之pbc显示完整分子和使用VMD的pbc命令显示完整分子
  • centos7安装本地mysql后启动失败解决:Failed to start mariadb.service: Unit not found. 2019-03-31 11 14145
    centos7安装本地mysql后启动失败解决:Failed to start mariadb.service: Unit not found.
  • phpstorm重复试用30天,实现无限试用 2020-09-28 09 14129
    phpstorm重复试用30天,实现无限试用
  • gmx trjcat 合并几个xtc文件-让轨迹连通在一起 2017-04-26 15 12879
    gmx trjcat 合并几个xtc文件-让轨迹连通在一起

Copyright © 2019.Company name All rights reserved.WEI1TOP

©BriskLan;桂ICP备16004757号-3
桂公网安备 45042102000009号