Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
为什么 opcache 没有刷新?
我用guzzlehttp guzzle封装在拉拉维尔 8 升级到后PHP 8 I get Symfony Component ErrorHandler Error FatalError Invalid opcode 117 2 0 in f
php
Nginx
fpm
php8
php版本升级到8后,出现此错误
我正在将 php 7 升级到 php 8 0 在以前的 php 版本 7 中 这段代码工作正常 child parent parent resultData gt parent id gt child Yes 上面的代码在 php 7 中工
php
php8
VSCode 中的 Laravel 9 + PHP 8.0.8 显示语法错误,意外的 '->' (T_OBJECT_OPERATOR)
为什么我在 PHP 8 0 8 上新创建的 laravel 9 项目在 Visual Studio Code 中显示错误 VSCode 将其显示为错误 return Limit perMinute 60 gt by request gt u
Laravel
php8
Xdebug v3.0.2 与 PHP v8.0.0
我刚刚使用 XAMPP v3 2 4 迁移到 php v8 0 0 但 Xdebug 不起作用 执行不会在断点处停止 我的安装说明 Download php xdebug 3 0 2 8 0 vs16 x86 64 dll Move the
php
VisualStudioCode
xdebug
php8
这个符号在 php 中的对象或空值中意味着什么[重复]
这个问题在这里已经有答案了 您能解释一下运营商做什么吗 gt 在 PHP 中做 因为我有这段代码 drive objDrive gt func gt getDriver gt value 目前只是一个提案 你可以去找找在此输入链接描述 ht
php
php8
有没有一种方法可以捕获异常而无需创建变量?
在 PHP 中 我有时会使用 try catch 捕获一些异常 try catch Exception e Nothing this is a test that an exception is thrown 通过这种代码 我最终得到了变量
php
Exception
errorhandling
trycatch
php8
在 PHP 8 上安装 apcu_bc 包时遇到问题
安装包时遇到以下错误pecl install apcu bc在 PHP 8 上 In file included from tmp pear temp apcu bc php apc c 35 usr local include php e
php
php8
apcu
PHP 8 严格类型强制应用于本机函数?
我的代码适用于 PHP 7 round microtime 3 但在 PHP 8 中 致命错误 未捕获类型错误 round 参数 1 num 必须是 int float 类型 4 中给出的字符串堆栈跟踪 0 round 0 21066100
php
types
casting
typeconversion
php8
Phpmyadmin 5.1.0.RC1 和 5.0.4 错误(./libraries/classes/Config.php#1285 mkdir() 中的警告:权限被拒绝)
我在 ubuntu 服务器 20 04 上测试 phpmyadmin 5 0 4 和 5 1 0 RC1 并且收到以下错误 Warning in libraries classes Config php 1285 mkdir Permiss
php
phpmyadmin
permissiondenied
mkdir
php8
OM\Db::query(string $statement) 的声明必须与 PDO::query 兼容
我刚刚安装了 PHP 8 却出现此错误 我如何解决它 致命错误 OM Db query string statement 的声明必须与 home www includes 中的 PDO query string query int fetc
php
php8
如何检测 PHP JIT 是否启用
检测 PHP 是否使用 JIT 编译并且从运行脚本启用 JIT 的最简单方法是什么 您可以通过调用直接查询opcache设置opcache get status https www php net manual en function op
php
JIT
php8
PHP 中有“nullsafe 运算符”吗?
有没有办法使用某种方式编写以下语句安全导航操作员 http docs codehaus org display GROOVY Operators Operators SafeNavigationOperator echo data gt g
php
operators
chaining
php8
nullsafe
如何为 PHP 8 设置 VS Code 扩展 Intelephense?
我想将我购买的 Visual Studio Code 扩展设置为使用 PHP 8 版本 因为它的 intelisense 功能 检查defaultSettings json对于 intelephense 搜索查询给出了很多点击 但只有一个对
php
laragon
php8
intelephense
PHP 是否有“命名参数”,以便可以省略前面的参数并可以写入后面的参数? [复制]
这个问题在这里已经有答案了 在 PHP 中 您可以调用不传入任何参数的函数 只要参数具有如下所示的默认值 function test t1 test1 t2 test2 t3 test3 echo t1 t2 t3 test 但是 假设我希
php
namedparameters
defaultarguments
php8
未捕获的 ArgumentCountError:array_merge() 不接受未知的命名参数
当我尝试安装任何主题到 WordPress 时出现此错误 我该怎么办 Fatal error Uncaught ArgumentCountError array merge does not accept unknown named par
php
WordPress
errorhandling
php8
PHP 是否允许命名参数,以便可以在函数调用中省略可选参数?
PHP 中是否可以在调用函数 方法时指定命名可选参数 跳过您不想指定的参数 就像在 python 中一样 就像是 function foo a b c whatever foo hello c bar we want b as the de
php
defaultvalue
optionalparameters
namedparameters
php8
如何修复 PHP 8 中的动态 SQL 查询功能?
在我的旧项目中 我在执行查询时使用了一个函数来 缩短 我的代码 而不是使用通常的方法 conn stmt conn gt prepare stmt gt bind param stmt gt execute stmt gt close co
php
Arrays
mysqli
PreparedStatement
php8
PHP 8 属性构造函数调用
我正在尝试了解 PHP 中的属性如何工作 但是当我编写一些代码时 我安装了支持 PHP 8 的 XAMPP 它似乎不起作用 屏幕上没有消息 它需要额外的配置才能工作吗 use Attribute class MyAttribute publ
php
php8
phpattributes
Laravel 9 突变冒号
在 Laravel 9 中 变异器有不同的实现 下面的例子来自官方文档 protected function firstName Attribute return Attribute make get fn value gt ucfirst
php
Laravel
php8
laravel9
mutators
PHP 8 上大于或小于比较的意外结果
以下返回false在 PHP 7 上但是true关于 PHP 8 有人可以解释为什么会发生这种情况吗 var dump U0M262 gt 100000 字符串和数字之间的比较没有明显正确的结果 在许多语言中 它只会给出一个错误 在其他语言
php
php8
1
2
»