diff -Nru php-soap-0.12.0/debian/rules php-soap-0.12.0-fix/debian/rules
--- php-soap-0.12.0/debian/rules	2010-05-08 05:14:35.000000000 +0700
+++ php-soap-0.12.0-fix/debian/rules	2013-03-01 15:43:23.522789041 +0700
@@ -33,12 +33,12 @@
 	dh_installdirs
 
 	cp package.xml $(pear_pkg)/package.xml;
-	$(PEAR) install -n -f -R debian/$(package) $(pear_pkg)/package.xml;
+	$(PEAR) -d doc_dir=/usr/share/doc/php5-common/PEAR install -n -f -R debian/$(package) $(pear_pkg)/package.xml;
 
 	grep "@author" $(pear_pkg)/* -R | sed -e 's/.*@author//' -e 's/^ *//' -e 's/>.*/>/' \
 		| sort | uniq > AUTHORS
 
-	chmod +x debian/$(package)/usr/share/php/doc/SOAP/example/tcp_daemon.pl
+	chmod +x debian/$(package)/usr/share/doc/php5-common/PEAR/SOAP/example/tcp_daemon.pl
 	rm -f debian/$(package)/usr/share/php/.filemap;
 	rm -f debian/$(package)/usr/share/php/.lock;
 	rm -rf debian/$(package)/usr/share/php/.channels;
