功能的返回值正在增加 [英] Return value of function is getting added
本文介绍了功能的返回值正在增加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨...
我有一个php脚本,它有一个函数调用,函数返回一个值。
但是当我在浏览器中打开并刷新页面,返回值将添加到旧值。
代码为:
展开 | 选择 | Wrap | 行号
解决方案
function.php的内容是什么?
它是C函数集的包装器。
作为猜测(因为你未能充分回答我之前的问题),我'说和问题是这样的:一个web服务器使用SAPI是连续的,而不是该CLI使用SAPI,这是基于请求的。因此,这就是你如何实现那些C包装器的问题,但我不能再具体了,因为我无法塑造或形成Zend扩展的专家(我只知道一点)。 br />
我建议你阅读扩展和嵌入PHP一书 - 谷歌会告诉你在哪里得到它(虽然它有点过时)。
Mark。
Hi...
I have a php script which has a function call and function returns a value.
But when i open it in browser and refresh the page the return value will get added to the old value.
Code is:
Expand|Select|Wrap|Line Numbers
解决方案
What is the contents of function.php?
It is a wrapper for set of C functions.
As a guess (because you failed to answer my previously question sufficiently), I''d say the problem is this: the SAPI that a web server uses is continuous, as opposed to the SAPI that CLI uses, which is request-based. Therefore, it''s how you''re implementing those C wrappers that is the problem, but I cannot be any more specific because I am in no way shape or form an expert on Zend extensions (I only know a little).
I recommend you read the book ''Extending and Embedding PHP'' - google will show you where to get it (although it is slightly outdated).
Mark.
这篇关于功能的返回值正在增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取
|
15天全站免登陆