[DOC-CVS] [phd] master: Fix deprecated fgetcsv usage by explicitly passing escape parameter (#232)
[email protected] (Louis-Arnaud via GitHub)
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
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