Share way to learn PHP source code

        Pumping a little time each day to read a book PHP source areas, to be honest, can not be observed in the state run PHP debugger, context is really a painful thing. Fortunately, however, is not nothing, though more content, but imagine what will happen next to master the method can still see some code. And there is a book in itself explain the PHP source code, so the learning curve is more convenient. Want to debug the source code, I think I should best s get plenty of rest before and was a sunny morning to learn about the knowledge of PHP source code debugging, so efficiency may be higher, but this seemed little chance.
 
        Reverse analysis before learning when the need to see the disassembled code, was also seen very dizzy, and later when learning to read the book also gives a reading experience disassembled. First, the instruction classification, such as a function call instruction, the instruction and data processing flow control and the like. Then reverse the part to be labeled in accordance with the instructions of analysis classification, disassembly, when read, meet the basic part of the function call more obvious that stack operations, function calls, etc., encountered when control of these processes directly disassemble according to a feature corresponds to a respective control structures if, for, while the like, and some experience data processing is required to read line by line.
 
        In fact, to read the corresponding PHP source code is similar to it.
 
        I talk about learning PHP source approach it. Although there are aspects of the book on the PHP source code, but the contents of the book to do some basic introduction to speak after the start of the source code. PHP and the underlying source code structure has a lot of data, but also sets the struct struct. This leads to a problem, if the logical data structure of the underlying finish is not clear, then manipulate the data to see when the code structure, must also be halo. So, when I read, I will put the relevant data structure in a manner similar to UML diagrams tidy, in fact, painted several figures, mark the data structure encountered what name I will mark the structure of the data structure and several key fields marked well, and to sort out the relationships between data structures, which would involve the data structure and data relationships figured it out, when looking at the code, data structure to organize their own open the shining look, not so dizzy. When the operation code is specific fields in the data structure, then the fields specific to the corresponding complementary data structure, processing logic will not only understand the underlying PHP source, but also for the underlying data structure and will have a clear and comprehensive control a.
 
        This is my way to it, though not complicated but it is quite useful. After all, stupid way is so primitive and simple!

Guess you like

Origin www.cnblogs.com/tosser/p/11874130.html