File tree Expand file tree Collapse file tree 9 files changed +13
-21
lines changed Expand file tree Collapse file tree 9 files changed +13
-21
lines changed Original file line number Diff line number Diff line change 1
1
PHP NEWS
2
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
3
?? Aug 2005, PHP 5.1 Release Candidate 1
4
+ - Unbundled XML_RPC pear class and force ext/xmlrpc dependency on pear (Rasmus)
4
5
- Updated bundled libraries in Windows distribution. (Edin)
5
6
. zlib 1.2.3
6
7
. curl 7.14.0
Original file line number Diff line number Diff line change @@ -874,15 +874,10 @@ if test "$PHP_PEAR" != "no"; then
874
874
pear_error_msg="$pear_error_msg
875
875
PEAR requires XML to be enabled. Add --enable-xml to the configure line. (or --without-pear)"
876
876
fi
877
-
878
- dnl
879
- dnl ext/xmlrpc is not really there yet to be a requirement..
880
- dnl
881
- dnl if test "$PHP_XMLRPC" = "no"; then
882
- dnl pear_error_msg="$pear_error_msg
883
- dnl PEAR requires XML-RPC to be enabled. Add --with-xmlrpc to the configure line. (or --without-pear)"
884
- dnl fi
885
- dnl
877
+ if test "$PHP_XMLRPC" = "no"; then
878
+ pear_error_msg="$pear_error_msg
879
+ PEAR requires XML-RPC to be enabled. Add --with-xmlrpc to the configure line. (or --without-pear)"
880
+ fi
886
881
887
882
if test "$pear_error_msg"; then
888
883
AC_MSG_ERROR ( [ $pear_error_msg] )
Original file line number Diff line number Diff line change @@ -115,9 +115,8 @@ function call($method)
115
115
$ this ->saveCache ($ _args , $ result );
116
116
};
117
117
return $ result ;
118
- }
119
- if (!@include_once ("XML/RPC.php " )) {
120
- return $ this ->raiseError ("For this remote PEAR operation you need to install the XML_RPC package " );
118
+ } else {
119
+ return $ this ->raiseError ("For this remote PEAR operation you need to load the xmlrpc extension " );
121
120
}
122
121
array_shift ($ args );
123
122
$ server_host = $ this ->config ->get ('master_server ' );
Original file line number Diff line number Diff line change 8
8
$ packages = array (
9
9
// required packages for the installer
10
10
"PEAR " => "1.3.5 " ,
11
- "XML_RPC " => "1.3.1 " ,
12
11
"Console_Getopt " => "1.2 " ,
13
12
"Archive_Tar " => "1.3.1 " ,
14
13
Original file line number Diff line number Diff line change 124
124
<dep type =" php" rel =" ge" version =" 4.2" />
125
125
<dep type =" pkg" rel =" ge" version =" 1.1" >Archive_Tar</dep >
126
126
<dep type =" pkg" rel =" ge" version =" 1.2" >Console_Getopt</dep >
127
- <dep type =" pkg " rel =" ge " version = " 1.0.4 " >XML_RPC </dep >
127
+ <dep type =" ext " rel =" has " >xmlrpc </dep >
128
128
<dep type =" ext" rel =" has" >xml</dep >
129
129
<dep type =" ext" rel =" has" >pcre</dep >
130
130
</deps >
Original file line number Diff line number Diff line change 1
1
<?php
2
- require_once 'XML/RPC/Server.php ' ;
3
2
4
3
class PEAR_test_mock_pearweb {
5
4
var $ _config ;
@@ -231,4 +230,4 @@ class PEAR_test_mock_pearweb {
231
230
return $ newval ;
232
231
}
233
232
}
234
- ?>
233
+ ?>
Original file line number Diff line number Diff line change 1
1
<?php
2
- require_once 'XML/RPC.php ' ;
3
2
require_once dirname (__FILE__ ) . DIRECTORY_SEPARATOR . 'PEAR_test_mock_pearweb.php.inc ' ;
4
3
$ GLOBALS ['pearweb ' ] = new PEAR_test_mock_pearweb ;
5
4
class test_XML_RPC_Client extends XML_RPC_Client {
@@ -94,8 +93,8 @@ class test_PEAR_Remote extends PEAR_Remote {
94
93
};
95
94
return $ result ;
96
95
}
97
- if (!@ include_once ( " XML/RPC.php " )) {
98
- return $ this ->raiseError ("For this remote PEAR operation you need to install the XML_RPC package " );
96
+ if (!extension_loaded ( " xmlrpc " )) {
97
+ return $ this ->raiseError ("For this remote PEAR operation you need to install the xmlrpc extension " );
99
98
}
100
99
array_shift ($ args );
101
100
$ server_host = $ this ->_registry ->channelInfo ($ server_channel , 'server ' );
@@ -401,4 +400,4 @@ class test_PEAR_Downloader extends PEAR_Downloader {
401
400
return $ dest_file ;
402
401
}
403
402
}
404
- ?>
403
+ ?>
Original file line number Diff line number Diff line change 22
22
<dep type =" pkg" rel =" ge" version =" 1.4.0dev6" >PEAR</dep >
23
23
<dep type =" pkg" rel =" ge" version =" 1.1" >Archive_Tar</dep >
24
24
<dep type =" pkg" rel =" ge" version =" 1.2" >Console_Getopt</dep >
25
- <dep type =" pkg " rel =" ge " version = " 1.1.0 " >XML_RPC </dep >
25
+ <dep type =" ext " rel =" has " >xmlrpc </dep >
26
26
<dep type =" ext" rel =" has" >xml</dep >
27
27
<dep type =" ext" rel =" has" >pcre</dep >
28
28
</deps >
You can’t perform that action at this time.
0 commit comments