Doc #80503 [NEW]: version_compare throws ValueError on invalid comparison operator in 8.0.0

From: Date: Thu, 10 Dec 2020 22:20:37 +0000
Subject: Doc #80503 [NEW]: version_compare throws ValueError on invalid comparison operator in 8.0.0
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18243@lists.php.net to get a copy of this message
From:             john at zerocrates dot org
Operating system: 
PHP version:      8.0.0
Package:          PHP options/info functions
Bug Type:         Documentation Problem
Bug description:version_compare throws ValueError on invalid comparison operator in 8.0.0

Description:
------------
The documentation (just recently updated to include the information
about version_compare returning null on an invalid comparison operator
in prior versions, from doc bug #77838), doesn't mention the new
behavior of the function in 8.0.0: it throws ValueError instead.

This also should possibly be mentioned as an incompatible change in the
migration to 8.0.0 document.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=80503&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80503&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80503&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80503&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80503&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80503&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80503&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80503&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80503&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80503&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80503&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80503&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80503&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80503&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80503&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80503&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80503&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80503&r=mysqlcfg


Thread (8 messages)

« previous php.doc.bugs (#18243) next »