DutchDaemon said:You need an extra parameter!
e.g.:
portmaster -o lang/php4 php5-5.2.9 (old -> new)
portupgrade -o lang/php5 lang/php4 (new <- old)
This may not be the exact syntax (sometimes the full version number needs to be included, which you can find in pkg_info)