This is an automated email from the ASF dual-hosted git repository.
rgoers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4php.git
The following commit(s) were added to refs/heads/master by this push:
new 2a62350 The function split() is deprecated and will be removed in php
7. Replaced split() with explode() to ensure smooth transition to php 7. For
more information, see http://php.net/manual/en/function.split.php
new 24b3847 Merge pull request #14 from alexiskulash/master
2a62350 is described below
commit 2a6235022b44bb944af2bc55a87e6fe0d2684621
Author: alexiskulash <[email protected]>
AuthorDate: Fri Jul 8 11:15:05 2016 -0500
The function split() is deprecated and will be removed in php 7. Replaced
split() with explode() to ensure smooth transition to php 7.
For more information, see http://php.net/manual/en/function.split.php
---
src/examples/php/appender_socket_server.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/examples/php/appender_socket_server.php
b/src/examples/php/appender_socket_server.php
index ed68225..5750bd0 100644
--- a/src/examples/php/appender_socket_server.php
+++ b/src/examples/php/appender_socket_server.php
@@ -54,7 +54,7 @@ class Net_Server_Handler_Log extends Net_Server_Handler {
throw new Exception("Please use
'log4php.appender.default.useXml = false' in appender_socket.properties file!");
}
preg_match('/^(O:\d+)/', $data, $parts);
- $events = split($parts[1], $data);
+ $events = explode($parts[1], $data);
array_shift($events);
$size = count($events);
for($i=0; $i<$size; $i++) {