--- a/components/php-5_2/php-52.p5m Thu Aug 23 22:53:50 2012 -0700
+++ b/components/php-5_2/php-52.p5m Wed Aug 29 13:35:13 2012 -0700
@@ -464,3 +464,9 @@
# force web/php-common onto the disk in case this package is installed/updated
depend fmri=pkg:/web/php-common type=require
+
+# if php5.3's apache module is present then make sure
+# php5.2's apache module is installed
+depend type=conditional \
+ predicate=web/server/apache-22/module/apache-php53 \
+ fmri=web/server/apache-22/module/apache-php52
--- a/components/php-5_3/php-53.p5m Thu Aug 23 22:53:50 2012 -0700
+++ b/components/php-5_3/php-53.p5m Wed Aug 29 13:35:13 2012 -0700
@@ -498,3 +498,9 @@
# if php5.2 is present drag forward because of /usr/php/* mediated links
depend fmri=pkg:/web/[email protected],$(BUILD_VERSION) type=optional
+
+# if php5.2's apache module is present then make sure
+# php5.3's apache module is installed
+depend type=conditional \
+ predicate=web/server/apache-22/module/apache-php52 \
+ fmri=web/server/apache-22/module/apache-php53
--- a/components/php-common/php.1.sunman Thu Aug 23 22:53:50 2012 -0700
+++ b/components/php-common/php.1.sunman Wed Aug 29 13:35:13 2012 -0700
@@ -110,6 +110,11 @@
.PP
pkg install web/php-53/documentation
.PP
+Before and after installing check or set the value of PHP's pkg
+mediator to the default version desired:
+.PP
+pkg mediator
+.PP
To set the default version of PHP change the pkg mediator value:
.PP
pkg set-mediator -V 5.3 php