Git Product home page Git Product logo

Comments (18)

glaslos avatar glaslos commented on July 23, 2024

Assigned to Enrico as he is the original developer of this module

from glastopf.

ilmila avatar ilmila commented on July 23, 2024

It could be a problem in the sandbox module, but I will look on it during this week.

from glastopf.

ilmila avatar ilmila commented on July 23, 2024

Hi Johnny, try to test the following snippet inside the apd_sandbox.py

"""
php5", "sandbox/apd_sandbox.php", "files/" + script]
"""

Create a test php /(test.php) file with the following content:

"""

"""
and run the sandbox from command line

php5 sandbox/apd_sandbox.php files/test.php

the expected output result is the string "testing". Otherwise there is an error inside the php sandbox installation from my point of view.

from glastopf.

johnnykv avatar johnnykv commented on July 23, 2024

Uhm, yes. you are right. Trying to figure out the exact problem. Unsure about the error message, does it mean that one have to have that exact version of Zend Engine API installed, or?

jkv@obelix:~/glas-dev/glastopf$ php5 sandbox/apd_sandbox.py files/test.php

Advanced PHP Debugger (APD) requires Zend Engine API version 220090626.
The Zend Engine API version 220100525 which is installed, is newer.
Contact George Schlossnagle at http://pear.php.net/ for a later version of Advanced PHP Debugger (APD).

from glastopf.

glaslos avatar glaslos commented on July 23, 2024

Johnny, APD is no longer working with your Zend API version. But I ripped it apart and build my own function replacer: https://github.com/glastopf/BFR Make sure to change your php.ini after building it.

from glastopf.

ilmila avatar ilmila commented on July 23, 2024

I think there is another issue inside the test_emulators.py in the function test_rfi_emulator.
The injected php file from http://1durch0.de/test_file.txt is:
"""

"""

the PHP sandbox should evaluate it and return the static string inside the echo command, but the assert is:
"""
self.assertIsNot(self.event.response, "test successful")
"""

it should be:
"""
self.assertEqual(self.event.response, "test successful")
"""

or not?

from glastopf.

glaslos avatar glaslos commented on July 23, 2024

Heh yes you are right.

from glastopf.

johnnykv avatar johnnykv commented on July 23, 2024

@glaslos Any chance you will fix/replace the APD in glastopf with you own sometime soon? :)

from glastopf.

glaslos avatar glaslos commented on July 23, 2024

There is no APD in Glastopf :)

from glastopf.

johnnykv avatar johnnykv commented on July 23, 2024

Ok, yes. you know... the whole function replace thingy stuff! :)

from glastopf.

glaslos avatar glaslos commented on July 23, 2024

You just have to install BFR instead of APD dude :)

from glastopf.

johnnykv avatar johnnykv commented on July 23, 2024

Oh my gawd. Now it makes sense - no wonder the test output from the CI server kept giving me the creeps.

from glastopf.

johnnykv avatar johnnykv commented on July 23, 2024

@glaslos the point about manually editing php.ini is missing from the install docs, yes?

from glastopf.

glaslos avatar glaslos commented on July 23, 2024

No, its just you :)

Modify your php.ini accordingly. Add:
zend_extension = /usr/lib/php5/20100525+lfs/bfr.so

from glastopf.

johnnykv avatar johnnykv commented on July 23, 2024

Hehe, i was talking about the docs for glaspot: https://github.com/glastopf/glastopf/blob/master/docs/source/installation/installation_ubuntu.rst

from glastopf.

glaslos avatar glaslos commented on July 23, 2024

Heh, you are right.

from glastopf.

gutehall avatar gutehall commented on July 23, 2024

I added the BFR part when I updated the docs, but I guess that the php.ini part got left behind.

from glastopf.

johnnykv avatar johnnykv commented on July 23, 2024

Created a new build environment with the instruction from Matthias, and everything works fine after all.

from glastopf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.