Skip to content

Commit b9a19c4

Browse files
committed
[TESTMAN] Explicitly convert integer to string for the output of the webservice.
Fixes `[ROSAUTOTEST] Expected Test ID, but received:`
1 parent 3169f16 commit b9a19c4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • www/www.reactos.org/testman/webservice

www/www.reactos.org/testman/webservice/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* PROJECT: ReactOS Testman
44
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
55
* PURPOSE: Web Service for receiving test results from "rosautotest"
6-
* COPYRIGHT: Copyright 2008-2017 Colin Finck (colin@reactos.org)
6+
* COPYRIGHT: Copyright 2008-2025 Colin Finck (colin@reactos.org)
77
*/
88

99
require_once("config.inc.php");
@@ -33,15 +33,15 @@
3333
$revision = $_POST["revision"];
3434
$platform = $_POST["platform"];
3535
$comment = $_POST["comment"];
36-
die($writer->getTestId($revision, $platform, $comment));
36+
die((string)$writer->getTestId($revision, $platform, $comment));
3737

3838
case "getsuiteid":
3939
if (!array_key_exists("module", $_POST) || !array_key_exists("test", $_POST))
4040
throw new RuntimeException("getsuiteid parameters not specified");
4141

4242
$module = $_POST["module"];
4343
$test = $_POST["test"];
44-
die($writer->getSuiteId($module, $test));
44+
die((string)$writer->getSuiteId($module, $test));
4545

4646
case "submit":
4747
if (!array_key_exists("testid", $_POST) || !array_key_exists("suiteid", $_POST) || !array_key_exists("log", $_POST))

0 commit comments

Comments
 (0)