4 ms·
Or use whatever tools are included in their language for safely evaluating strings (like ast.literal_eval in Python).
by sannee 8y ago
Or use whatever tools are included in their language for safely evaluating strings (like ast.literal_eval in Python).
- Something1234 8y agoIt's PHP there is none. In fact most languages don't include a safe way to evaluate strings out of the box.
- jsjohnst 8y ago> It's PHP there is none. This seems to disprove that, no? https://secure.php.net/manual/en/runkit.sandbox.php https://secure.php.net/manual/en/runkit.sandbox.php
- Something1234 8y agoAllow me to rephrase, no cheap way to evaluate arbitrary strings without spinning up another vm.
- jsjohnst 8y agoThat’s not true either.
- workinthehead 8y agoexplain?
- workinthehead 8y agoThat's an extension. It doesn't come with PHP (not "out of the box").
- jsjohnst 8y agoRails doesn’t come with a default install of Ruby. Xcode doesn’t come pre-installed on macOS. You have to install Chrome on every major desktop OS as it doesn’t come by default. Installing and configuring your environment to your needs should be entry level stuff for a developer, so what was the point of your reply?
- workinthehead 8y agoCan you explain why PHP developers are so uniquely unable to accept honest criticism of their language? Like, whence all the butthurt, bro? The original point was that PHP doesn't have a safe string eval built-in. Which is completely fucking true. Rage all you want. Moreover, most PHP devs (probably rightfully) won't install runkit because of all the other clowny shit it enables, but that's an entirely other kettle of fish.
- jsjohnst 8y ago> Can you explain why PHP developers are so uniquely unable to accept honest criticism of their language? Like, whence all the butthurt, bro? I’m not a PHP developer. Nice try to deflect though! You obvious have an agenda you are trying to push at all costs and don’t want to learn, so have a great day!
- deleted 8y ago[deleted]
- workinthehead 8y agoJeremy, your Github says otherwise: https://github.com/jsjohnst https://github.com/jsjohnst Why you gotta lie, man? You've completely made an ass of yourself.