File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -349,16 +349,23 @@ protected function invokeLDAPMethod() {
349349 * @param array $args
350350 */
351351 private function preFunctionCall ($ functionName , $ args ) {
352+ $ this ->curFunc = $ functionName ;
353+ $ this ->curArgs = $ args ;
352354 if ($ this ->logFile !== '' ) {
355+ $ args = array_reduce ($ this ->curArgs , function (array $ carry , $ item ): array {
356+ if (!is_resource ($ item )) {
357+ $ carry [] = $ item ;
358+ }
359+ return $ carry ;
360+ }, []);
353361 file_put_contents (
354362 $ this ->logFile ,
355- $ this ->curFunc . ':: ' . json_encode ($ this -> curArgs ) . "\n" ,
363+ $ this ->curFunc . ':: ' . json_encode ($ args ) . "\n" ,
356364 FILE_APPEND
357365 );
358366 }
359367
360- $ this ->curFunc = $ functionName ;
361- $ this ->curArgs = $ args ;
368+
362369 }
363370
364371 /**
You can’t perform that action at this time.
0 commit comments