how can I acces the PHP script stored as a string by th SAPI?

155
December 18, 2019, at 4:00 PM

This question was closed due to lack of details so I re-ask with details. Hope it's enough details now.

(Please correct me if I'm wrong) In the net I found that a php script have to go throught 4 state during it's process:

Stored as a string, tokenized, parse and compiled then the executed (it look like 5 to me but they said it's 4 so let's go with that).

What I'd like to ask is, is it possible to access that string state and if yes how?

The reason I'm asking:

I was asked to add a functionality to PHP that allow it to process an encrypted PHP code so I thought about adding a decryption process before the tokenization of the code PHP stored as a string.

I know it's stupid for a few people 'cause it's causing trust issue and other problem like security but that's what my client(the one who's gonna develop the PHP application) want so I'm just trying to do my job.

Rent Charter Buses Company
READ ALSO
How to alias a vendor name in composer

How to alias a vendor name in composer

I am using a php library that has changed a vendor name, so a lot of the the classes depending on it have problem resolving it and the project fails to startLet's say the vendor name was xyz and now it has changed to xyz3, so every class should use namespace...

169
How to modify array values within an associative array in Php

How to modify array values within an associative array in Php

Just started working with Php and came across many quirks in the languageOne issue with associative arrays is I am unable to easily modify an existing array value inside another array

210
I get 503 after copying to many files with PHP

I get 503 after copying to many files with PHP

I am trying to duplicate an entire folder (a very big one) with a recursive function

130