runkit

PHP Startup: Timezone database is corrupt

孤街浪徒 提交于 2019-12-25 04:35:27
问题 I have juste updated my CentOS server. PHP is now at the 5.2.10 version (php-5.2.10-1.el5.remi.i386), and I have installed PECL Runkit. tzdata was updated too (tzdata-2009i-2.el5.noarch). Since the update, Apache refuse to start Here is the httpd/error.log [Wed Jul 08 11:40:21 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Jul 08 11:40:24 2009] [notice] Digest: generating secret for digest authentication ... [Wed Jul 08 11:40:24 2009] [notice] Digest: done PHP Strict

PHP - Alternatives to runkit for intercepting method calls

故事扮演 提交于 2019-12-21 16:47:27
问题 I have some very test-unfriendly code (to say the least) that I need to test. Refactoring unfortunately is not an option. I have to test the code as it is, without the possibility of changing it. To do that, I was thinking of intercepting function calls and dynamically change what they do so I can run my tests, as I need some functions and methods to return known values, and I need others that make requests, connect to the database, etc, to stop doing that and return what I need them to

PHP - Alternatives to runkit for intercepting method calls

試著忘記壹切 提交于 2019-12-21 16:45:32
问题 I have some very test-unfriendly code (to say the least) that I need to test. Refactoring unfortunately is not an option. I have to test the code as it is, without the possibility of changing it. To do that, I was thinking of intercepting function calls and dynamically change what they do so I can run my tests, as I need some functions and methods to return known values, and I need others that make requests, connect to the database, etc, to stop doing that and return what I need them to

remove non-user constant php

谁说胖子不能爱 提交于 2019-12-11 09:57:04
问题 I'm trying to remove the STDIN constant for debugging purposes, however phpdbg> ev runkit_constant_remove('STDIN') [PHP Warning: runkit_constant_remove(): Only user defined constants may be removed. in eval()'d code on line 1] So I would like to know whether there exists any way in php to remove these non-user constants. 来源: https://stackoverflow.com/questions/31315783/remove-non-user-constant-php

Can someone compile PHP runkit DLL extension for me?

限于喜欢 提交于 2019-12-11 03:48:58
问题 I give up. I've asked this question some time ago but I'm again into that issue. I'm still stuck with compilation errors / missing files / other stuff that I can't / don't have time to fix. Don't get me wrong - I've compiled it several times, but none of the DLL files I've got worked. I use WAMPServer 2.1e [Apache 2.2.17, PHP 5.3.5] - after enabling php_runkit it does not start. Even already compiled DLLs from the Internet haven't worked. Another time Windows seems to be simply against me.

Where can I get runkit DLL extensions for PHP 5.3+?

梦想与她 提交于 2019-12-11 03:17:22
问题 That is a quick question: Where can I get PHP's runkit extension for version 5.3+? Manual for it: http://php.net/manual/en/book.runkit.php I am searching for DLL version, as I am trying to play with it on Windows. I've searched snaps.php.net, Googled it, but no luck. Can you point me to the right location or upload it somewhere? 回答1: From Runkit: Installation A DLL for this PECL extension is currently unavailable. See also the building on Windows section. You have to compile the DLL yourself.

PHP - Alternatives to runkit for intercepting method calls

心不动则不痛 提交于 2019-12-04 07:55:26
I have some very test-unfriendly code (to say the least) that I need to test. Refactoring unfortunately is not an option. I have to test the code as it is, without the possibility of changing it. To do that, I was thinking of intercepting function calls and dynamically change what they do so I can run my tests, as I need some functions and methods to return known values, and I need others that make requests, connect to the database, etc, to stop doing that and return what I need them to return. Is there any way to do this without runkit_method_redefine() , which is preferably not "EXPERIMENTAL