go to bug id or search bugs for
The code here shows that CURRVAL() is used to get the last id of a named sequence but if NULL is passed, NULL is returned.
However, as of postgres 8.3, the LASTVAL() function has been available to get the last sequence in a session of any sequence. Postgres 8.2 EOL was in 2011.
Add a Patch
Add a Pull Request
Implemented via https://github.com/php/php-src/pull/2014