By spec of PDO, PDO::lastInsertId shall returns the ID of the last inserted row or sequence value. When this function's parameter is not null, it can return the current sequence value. It depends on the underlying database.
For this reason, CUBRID shall support function such as cci_get_serial_value() to get the current serial value.
To see PDO spec, see at http://www.php.net/manual/en/pdo.lastinsertid.php