[phd] master: Fix deprecated fgetcsv usage by explicitly passing escape parameter (#232)
| From: | Louis-Arnaud via GitHub | Date: | Sun, 11 Jan 2026 20:31:19 +0000 |
| Subject: | [phd] master: Fix deprecated fgetcsv usage by explicitly passing escape parameter (#232) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-22941@lists.php.net to get a copy of this message | ||
Author: Louis-Arnaud (lacatoire)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2026-01-11T20:31:16Z
Commit: https://github.com/php/phd/commit/43855fa7b22174bc1a0719b842426f64f4b30db8
Raw diff: https://github.com/php/phd/commit/43855fa7b22174bc1a0719b842426f64f4b30db8.diff
Fix deprecated fgetcsv usage by explicitly passing escape parameter (#232)
Changed paths:
M phpdotnet/phd/Package/PHP/EnhancedCHM.php
Diff:
diff --git a/phpdotnet/phd/Package/PHP/EnhancedCHM.php b/phpdotnet/phd/Package/PHP/EnhancedCHM.php
index fd437701..8ac125b3 100644
--- a/phpdotnet/phd/Package/PHP/EnhancedCHM.php
+++ b/phpdotnet/phd/Package/PHP/EnhancedCHM.php
@@ -80,7 +80,11 @@ public function update($event, $value = null) {
$this->outputHandler->v('Preparing usernotes.', VERBOSE_MESSAGES);
// Decompress the 'all' file into single files - one file per sectionid.
- while($fpNotes && !feof($fpNotes) && false !== ($userNote =
fgetcsv($fpNotes, 0, '|'))) {
+ while (
+ $fpNotes
+ && !feof($fpNotes)
+ && false !== ($userNote = fgetcsv($fpNotes, 0, '|',
'"', '\\'))
+ ) {
// Usernote index
// 0 = Note ID
// 1 = Section ID