当前位置:网站首页>Trying to access array offset on value of type int
Trying to access array offset on value of type int
2022-04-22 13:08:00 【荒-漠】
问题描述:
出现报错信息 先百度翻译
''试图访问int类型值的数组偏移量''

通过翻译得知 int型的数据被其他不能使用的类型使用了(个人理解)
关于这块 php7.4升级之后会有这个bug 网上大多人是说
7.4 版本的向后不兼容更改,非数组的数组样式访问,现在,尝试将 null,bool,int,float 或 resource 类型的值用作数组 ( 例如 $null[“key”] ) 会产生一个通知。
解决问题:

我这个报错在83行 我先打印查询$pValue查看是什么类型数据 通过打印发现是int型
而83行数据是直接把$pValue当成数据调用了 没有判断 不够严谨 所以我在这行加了一个先判断是否是数组

然后 问题就解决了!
版权声明
本文为[荒-漠]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq5201314wx/article/details/124317321
边栏推荐
- The compatibility certification of ecological Wanli database and Yixin technology has been completed
- ROS机器人学习——麦克纳姆轮运动学解算
- [dark horse morning post] it is known that it is listed in Hong Kong today; Xiaohongshu responded to layoffs of 20%; The glory of the king was accused of plagiarism; Liu Jianhong's live broadcasting r
- Stc8h internal eepom explanation
- rsync远程同步
- From construction to governance, the industry's first white paper on microservice governance technology was officially released (including a free download link)
- Chrome多设备书签同步方案
- Cube MX configuration SPI flash (w25q256)
- Leetcode 1678. Design goal parser
- Ros2 - teach you to write a topic hand in hand
猜你喜欢

难得盈利或是昙花一现,达芙妮学不会南极人

CubeMX配置SPI-Flash(W25Q256)

When doing correlation analysis, how to exclude singular value outliers to increase the accuracy of correlation analysis

Digital commerce cloud centralized procurement system: centralized procurement and internal and external collaboration to minimize abnormal expenses

Inamori Kazuo: face the reality, think hard and fight head-on

Leetcode 617. Merge binary tree

Leetcode 695. Maximum area of the island

Ros2 - use of parameters

Redis的下载安装

Cube MX configuration SPI flash (w25q256)
随机推荐
Example accumulation of two-dimensional line drawing function plot () in MATLAB
模型的权值以及loss或者中间变量变成了nan怎么回事
C custom button implementation source code
销量大腰斩,岚图无蓝图
RT thread configuration SPI flash (w25q256)
Get rid of the "small workshop" of AI production: how to build a cloud native AI platform based on kubernetes
R语言使用qnorm函数生成正太分布分位数函数数据、使用plot函数可视化正太分布分位数函数数据(Normal distribution)
Use opencv's function threshold () to threshold the image based on Otsu - and attach a good blog link to introduce the principle of Otsu
The data in MATLAB is forcibly converted from double type to uint8, which is rounded, and the basic data type of MATLAB is attached
Drawing violin picture with R language geom_ Violin, how to add additional points geom_ point? geom_ violin + geom_ boxplot + geom_ Point combination
Fade in and fade out function of C form (project source code)
redis的key都变成了backup,值也都不见了,这是为什么呢?
难得盈利或是昙花一现,达芙妮学不会南极人
数商云家电商城系统解决方案,优化电器商城采购供应链管理,减低库存提升资金利用率
Node debugging guide - inspector protocol
OPLG:新一代云原生可观测最佳实践
R语言使用dhyper函数生成超几何分布密度数据、使用plot函数可视化超几何分布密度数据(Hypergeometric Distribution)
Chrome多设备书签同步方案
Excel表格中如何批量删除工作表
树莓派压缩备份