mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
fix: crash when a string is passed for the topics parameter of the mercure_publish() function (#2021)
This commit is contained in:
1
testdata/flush.php
vendored
1
testdata/flush.php
vendored
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
|
||||
|
||||
require_once __DIR__.'/_executor.php';
|
||||
|
||||
return function () {
|
||||
|
||||
8
testdata/mercure-publish.php
vendored
Normal file
8
testdata/mercure-publish.php
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__.'/_executor.php';
|
||||
|
||||
return function () {
|
||||
echo "update 1: " . mercure_publish('foo', 'bar', true, 'myid', 'mytype', 10) . PHP_EOL;
|
||||
echo "update 2: " . mercure_publish(['baz', 'bar']) . PHP_EOL;
|
||||
};
|
||||
Reference in New Issue
Block a user