It's quite disconserning when looking up a function that used in a script and not finding it at all in the docs. I managed to find pg_errormessage docs on an outdated mirror through google and some mailing list mentioning that it's been replaced by pg_last_error. The docs for pg_last_error only mention that used to be called pg_errormessage with no mention at all to whether or not it still works as an alias or if/when it will be phased out.
It does still work and I tried posting that as a note but it was refused stating it was a question. I do not understand how "pg_errormessage still works in 4.2 and newer so old scripts don't need redone" is a question and I don't understand why it would not be thought of as helpfull.
If pg_errormessage is going to be phased out please state when in the docs so those of us stuck supporting older and newer php's in our scripts known when we'll need to make version detection to call the correct functions. Despite what you would like there are still many sites out there using php as old as 4.0.6 without trouble (don't fix what aint broke right?) and OSS projects can only afford to alienate so many of our users and developers at a time and 4.1.x is the limit for us now.
Thanks for your consideration on this confusing matter. Chris