go to bug id or search bugs for
I have result.php on
the compile this file, and run this file. Sometimes it
segfalut. Somtimes the parent:: not found. The internal code
broken a little. Even I set filename by
bc_filename_call_back_handler when the file in
ase/postgresql/. It is still broken.
When I copy result.php this file into /var/www/default, then
compile this file and copy back to
ase/postgresql/result.php. All things works as expected.
I try a lot to reproduce this issue. Not easy then. I
suppose that ,when files reside in a long directory name.
The bytecode will overide something. And caused unexpected
I write some small code, but they work ok.Not easy to reproduce.
When directory is long, the compiled code still works Ok.
When change filename by bc_filename_call_back_handler, the
generated code should be the same no matter where the realfile
When file reside in different directory, even set the filename
as the same by bc_filename_call_back_handler, the generated
code are still different.
Add a Patch
Add a Pull Request
The first line of code is
class Kohana_Database_PostgreSQL_Result extends
But the error is:
Fatal error: Cannot access parent:: when current class scope
has no parent
Which means that " extends Database_Result" is overided. Not
only this file. A lot file occurs when their directory is
When I run another application, one of class cause SEGFAUTL on
instanceof_function_ex which is call from
zend_implement_serializable in zend_interface.c of PHP. This
segfault could be described as sometimes, the compiled file
will cause the parent:: search failed during the __construct
of class failed or seg falut.
It is the same bug as http://pecl.php.net/bugs/bug.php?
All seg fault code involve the extending the build in class.
I run the code post there, seg fault as well.
My running environment is PHP-FPM 5.3.6.
This is duplicated with #16965