diff --git a/php/ext/google/protobuf/generate_package_xml.sh b/php/ext/google/protobuf/generate_package_xml.sh index 7d4aa94a91..8fc43dba3f 100755 --- a/php/ext/google/protobuf/generate_package_xml.sh +++ b/php/ext/google/protobuf/generate_package_xml.sh @@ -37,5 +37,5 @@ sed -e "s;TEMPLATE_TIME;${time};" | sed -e "s;TEMPLATE_PHP_RELEASE;${release_version};" | sed -e "s;TEMPLATE_PHP_API;${api_version};" | sed -e "s;TEMPLATE_PHP_STABILITY;${stability};g" | -sed -e "s;TEMPLATE_PROTOC_VERSION;${protoc_version};" | +sed -e "s;TEMPLATE_PROTOC_VERSION;${protoc_version//-rc-/-rc};" | sed -e "s;TEMPLATE_FILES;${files};" > $out