[PHP] Odd failure
- Date: Mon, 10 Apr 2017 12:57:29 -0700
- From: Jeffry Killen <jekillen@xxxxxxxxxxx>
- Subject: [PHP] Odd failure
This is a simplistic subject line and the problem
is both subtile and not so subtile;
There is a lot of code spread over several html
files and php source files so I will try to describe
the problem as clearly as possible with out
!: I have created an html interface that is used for development
of user defined arrays and functions
2: The arrays and functions are php code that are written to
php script files. This allows the user to chose sample arrays
and sample functions to work with.
3: The purpose of this application is to develop a class definition
in php that has at its core a recursive function for recursing over
arrays; specifically multidimensional arrays.
4: The arrays it recurses over are the sample arrays saved in files
5: It has a built in function that produces a formatted string representation
of the target array. It is working well enough.
6: I also has a public method to use to install one of the user defined functions
for the server to use this class definition to parse the array using the designated
If I designate the default function to be used, everything works as expected.
AND, if I designate one of the user defined, external functions:
The get request will not return at all; event if I comment all the processing code
and have it return an arbitrary string to test.
The external function code is not sent, only the path/file to the source. The source
file is, in turn required by the class object instance and the function is assigned to
a private static variable.
But even with this step commented out, the async request will not return anything.
If I designate the default built in function, the arbitrary string is returned (with relevant
for both cases. But if there are coding problems, I should get some kind of error indication
file not found or the result is screwed up somehow.
Is this a security issue? Something seems to be anticipating something base on the
get variables in the request.
Thank you for time and attention
code to process async request: You can see all the relevant code commented out.
if($_GET['async'] == 'true' && isset($_GET['opr']) && $_GET['opr'] == 'pars')
//require($_GET['arraySrc']); // contains $_sample
$_test = new _ARRAY_RECURSOR();
$_params = array
if(isset($_GET['functSrc']) && $_GET['functSrc'] != '')
$_params['code'] = $_GET['functSrc']; // path/file name of source
$_result = $_test->run('test', $_params);
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php