semsol / arc2

ARC RDF Classes for PHP
Other
331 stars 92 forks source link

preg_match error in PHP 7.4 #148

Closed craigdietrich closed 3 years ago

craigdietrich commented 3 years ago

Noticed this in PHP 7.4, which updated their preg rules. This line:

https://github.com/anvc/scalar/blob/31d2e9c7dec203842785fbec021d3144ae930e9b/system/application/arc/store/ARC2_StoreLoadQueryHandler.php#L329

... errors with:

<p>Severity: Warning</p>
<p>Message:  preg_match(): Compilation failed: escape sequence is invalid in character class at offset 20</p>
<p>Filename: store/ARC2_StoreLoadQueryHandler.php</p>
<p>Line Number: 329</p>

Note that the line in question has a comment that it is intended to be deleted.

craigdietrich commented 3 years ago

Actually, I was looking at a stale version of StoreLoadQueryHandler, it looks like this has been removed.