[PECL-CVS] [pecl-file_formats-yaml] php7: avoid unexpected NAN value was coerced to string

[email protected] (Remi Collet via Bryan Davis)
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Remi Collet (remicollet)
Committer: Bryan Davis (bd808)
Date: 2025-10-06T15:19:46-06:00

Commit: https://github.com/php/pecl-file_formats-yaml/commit/d61ffec7b80192b57bf86d8ac79baf3cb5033e42
Raw diff: https://github.com/php/pecl-file_formats-yaml/commit/d61ffec7b80192b57bf86d8ac79baf3cb5033e42.diff

avoid  unexpected NAN value was coerced to string

Changed paths:
  M  tests/bug_79866.phpt


Diff:

diff --git a/tests/bug_79866.phpt b/tests/bug_79866.phpt
index 2189b90..6dbc813 100644
--- a/tests/bug_79866.phpt
+++ b/tests/bug_79866.phpt
@@ -29,7 +29,7 @@ $floats = [
 foreach( $floats as $idx => $float ) {
   $float = floatval($float);
   ob_start();
-  echo $float;
+  @print_r($float);
   $native = ob_get_clean();
 
   $expect = "--- {$native}\n...\n";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.