PHP: Fix for broken upgrade/rebuild logic on libcurl packages upgrade.