Comments (5)
1503 行是个括号,看不出哪儿有问题来啊
from hprose-aauto.
感谢回复,不好意思,是1502行,我自己在前面加了个if(pos)
from hprose-aauto.
什么情况下会出错,是什么引起的?仅凭现在提供的这些信息我没法确定该怎么改。你的这个错误我也没法复现。
from hprose-aauto.
服务器新浪sae,框架是thinkphp3.2.3
我打印了参数 cookieList 的值:
参数位置:1
数据类型:table
变量值: {
[1] = PHPSESSID=ea1ff7774a721b472210f32a276eba76; path=/; HttpOnly
}
序列数组长度: 1
貌似是由于多了个 HttpOnly 不是键值对引起的pos为空
thinkphp 有个参数可以设置这个属性
'COOKIE_HTTPONLY' => '', // Cookie的httponly属性 3.2.2新增
服务端不是我的,不知道是不是设置了这个的原因
我目前在前面加了 if(pos) ,可以正常使用,不晓得有没副作用
希望能有帮助
from hprose-aauto.
哦,原来如此,我明白了。加上 if (pos !== null) 应该可以
from hprose-aauto.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hprose-aauto.