Nusphere PHPEd:PHP 函数提示丢失参数?

发布于 2024-07-13 04:09:02 字数 791 浏览 11 评论 0原文

我的 PHPEd 突然停止在提示中显示参数和 arg 顺序,现在只显示函数的基本描述。

在我深入研究配置文件之前,有其他人遇到过这个问题吗?

谢谢!

编辑:

抱歉,我可能对此不太清楚。 我自己的类没有问题,只有实际的php函数有问题。

示例:

它以前是如何工作的:

我输入一个 PHP 函数,比如 strpos。 一旦我在末尾输入“(”,我就会看到一个黄色的小框,显示如下内容:

int strpos  ( string $haystack  , mixed $needle  [, int $offset=0  ] )

第一个参数加粗。如果我输入它,然后输入逗号,它会将第二个参数加粗,并且这真的很好,因为 PHP 函数在参数顺序方面有点混乱,而且我不必每次都查找它们

现在是如何工作的:

我很快就输入了一个 php 函数。当我在末尾输入“(”时,我得到了一个黄色的小框。它说的是“strpos - 返回 haystack 字符串中第一次出现的数字位置。”

没有显示任何参数,其中使得这个小盒子基本上毫无价值 - 我知道 strpos 的作用,我只是想提醒一下参数顺序,

我认为这可能是包含的 PHPDoc 的问题,我从未使用过它,但可能是数据源。 我最近确实

升级到了 5.6,但最终删除了它并恢复了 5.2,我安装到了另一个文件夹,然后从那里卸载,但它可能覆盖了原始文件夹中的某些内容?

我正在使用 v5.2 (5220)。

My PHPEd suddenly stopped showing arguments and arg order in the hints, and now just shows a basic description of the function.

Before I go digging around in the config files, has anyone else had this problem?

Thanks!

Edit:

Sorry, I may not have been entirely clear on this. There is no problem with my own classes, only with the actual php functions.

Example:

How it used to work:

I type a PHP function, say strpos. As soon as I type the '(' at the end of it, I get the little yellow box, showing something like this:

int strpos  ( string $haystack  , mixed $needle  [, int $offset=0  ] )

with the first argument bold. If I type it, and then a comma, it bolds the second arg, and so on. This is really nice, since PHP functions are a bit scrambled as far as argument order, and I don't have to look them up every time.

How it works now:

I type a php function, say strpos. As soon as I type the '(' at the end of it, I get the little yellow box. It says something like "strpos - Returns the numeric position of the first occurrence of needle in the haystack string."

There are no arguments shown, which makes the little box basically worthless - I know what strpos does, I just want a reminder of the argument order.

I think this may be a problem with the included PHPDoc, which I never use, but may be the source of the data for the hint box.

I did recently upgrade to 5.6, but ended up removing it and restoring 5.2. I installed to a different folder, and uninstalled from there, but it may have overwritten something in the original folder?

I'm using v5.2 (5220).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

极度宠爱 2024-07-20 04:09:02

完全重新安装似乎已经解决了问题。 也许是部分升级或设置版本不匹配的问题。

A complete re-install seems to have done fixed the problem. Perhaps it was a problem with a partial upgrade or a version mismatch on the settings.

满意归宿 2024-07-20 04:09:02

您使用的 PhpEd 版本是什么? 您最近更新了 PhpEd 吗?

正如论坛中提到的,可以修改“Function参数工具提示”功能行为。

检查这是否链接到设置的一种方法是移动 phped.cfg 配置文件(保存),并让 PhpEd 使用默认值重新创建它。 如果确实恢复了工具提示,请使用 diff 程序检查哪些选项可能已更改。

您是否没有看到所有类的提示,或者仅看到您自己的 Php 类的提示(在后一种情况下,此线程 有一些设置建议)?


注意:我要求版本的原因是因为 这个最近的帖子,关于 PhpEd5.5:

替代文字

在这种情况下,建议将 %PROGRAMFILES%\nusphere\phped\config\func.rel 复制到 %APPDATA%\nusphere\phped\config\目录覆盖其中的文件。

What version of PhpEd are you using ? And did you made an update of PhpEd recently ?

As mentionned in the forum, that can modify the "Function Arguments Tooltip" feature behavior.

One way to check if this is linked to settings is to move the phped.cfgconfig file (save it), and let PhpEd recreates it with default values. If that does restore the tooltips, use a diff program to check what option may have been changed.

Do you see no hints for all classes, or only your own Php classes (in the latter case, this thread has some setting advices) ?


Note: the reason I ask for the version is because of this very recent thread, about PhpEd5.5:

alt text

In that case, the advice is to copy %PROGRAMFILES%\nusphere\phped\config\func.rel into %APPDATA%\nusphere\phped\config\ directory overriding the file in it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文