simplesamlphp / saml2

SimpleSAMLphp low-level SAML2 PHP library
https://www.simplesamlphp.org
GNU Lesser General Public License v2.1
286 stars 135 forks source link

unserialize error #354

Closed estettler closed 9 months ago

estettler commented 9 months ago

I'm using 4.x with PHP 8.1.1 and suddenly I'm seeing this error:

Error: Cannot access property starting with "\0" in SAML2\XML\saml\NameIDType->__unserialize() (line 252 of /var/www/vendor/simplesamlphp/saml2/src/SAML2/XML/saml/NameIDType.php)

Any idea how this might be debugged?

tvdijen commented 9 months ago

Hi! Try clearing your session storage. You are probably trying to unserialize a session that was serialized by an older version.

estettler commented 9 months ago

Thank you! That was it.