[PHP-DEV] PHP 4 Bug Summary Report
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (626 total including feature requests) ===[*Regular Expressions]= 39723 Open eregi in difference query ===[Apache2 related]== 38670 Open Whole 4.4.x branch has problem with open_basedir option nested from Apache2 38915 Open mod_php: system() (and similar) don't cleanup opened handles of Apache ===[Arrays related]=== 31114 Assigned foreach modify array (works with PHP 5.1) 37451 Open array_multisort fails to trigger by val copy of data (works in PHP 5.1) ===[CGI related]== 38476 Open PATH_INFO, ORIG_PATH_INFO, and PHP_SELF not set in Lighttpd1.4.11/PHP4.4.3 ===[Class/Object related]= 39254 Open Refcount error with static variables and object references (PHP4 only) 39681 Open this assignment outside class breaks static function call (PHP4 only) ===[COM related]== 37899 Assigned [PATCH] php_char_to _OLECHAR copies junk bytes ===[cURL related]= 36248 Assigned CURLOPT_HEADERFUNCTION, couldn't set the function in the class (works in 5.1) ===[Documentation problem] 29045 Suspended gzopen for URL 36663 Open unexpected difference between "zlib.output_compression" and "ob_gzhandler" 37008 Open sdg 37009 Open I got wrong letter Å and å ! 37164 Analyzed SNMP: snmp_set_oid_numeric_print does not behave as expected 37901 Verified Unable to find the wrapper "file" ===[EXIF related]= 39617 Assigned Erroneously uses the GPS version tag to determine byte order of GPS fields ===[FDF related]== 34811 Assigned fdf_get_value max size ===[Feature/Change Request]=== 979 Open [PEAR] Openmarket Transact support 3066 Open Parameter for dns functions to select different DNS 3275 Analyzed [PEAR] ICQ support 3799 Suspended default_charset brings small incompatibility 3830 Open Function to timeout/break off a function 5007 Analyzed enable no-resolve mode for here docs 5050 Analyzed $php_errormsg not changed on errors inside functions 5169 Open Missing recursive behavior 5311 Analyzed implement checkdnsrr() and getmxrr() on windows 5435 Open Request to update eval() or create new function. 5563 Analyzed Change session.cache_expire value to be in seconds 5575 Open open_basedir to ~ 5601 Analyzed @function() should not turn of error reporting for critical errors 5748 Open use 'App Paths' registry key to specify path for supporting dlls 5804 Open parser error if any spaces follow indentifier in with here doc syntax 5883 Assigned --enable-trans-sid modification request 5954 Open Informix can't reliably figure if a text result column is NULL 5960 Open Output buffering and headers 5975 Open version of strip_tags() that specifies tags to strip (instead of tags to keep) 6107 Open increments are magic, decrements not 6118 Open Can not supress runtime warnings on foreach 6268 Open ternary op return only by value 6399 Open checkdate should be able to validate a time as well as a date (timestamp) 6418 Open Multiple class extends ordering error 6427 Open func_get_arg() does not support references 6503 Open no support for multiple resultset query? 6512 Analyzed sort() Does not sort stings as expected 6574 Open SMTP functions via IMAP c-client library 6680 Open regexps (ereg*) ignores locale settings 6771 Open Import LIB files needed in Win32 distribution 6893 Assigned feature request - makelinks() function 6911 Open Problem with array_merge(_recursive) 6927 Suspended 6932 Open Filesize / File_exists and include_path 6993 Open uninstalling is a pain in the ass 7006 Open preg_replace ( string pattern, array replacement, string subject ); 7028 Analyzed xml=shared and wddx do not work together 7132 Assigned fsockopen doesn't report dns lookup failure 7398 Open Stored procedure error return values not passed through 7507 Open Better ODBC error reporting/fetching 7541 Open please consider also support HPUX shl_* 7553 Open RFC: Uplevel Block structure 7559 Open zend_hash_get_current_key_ex returning persistent strings 7578 Open next() and current() do not return referenceing arrays 7808 Open variable value triggerd by function 7923 Analyzed htmlentities doesn't work for ISO 88
[PHP-DEV] PHP 5 Bug Summary Report
PHP 5 Bug Database summary - http://bugs.php.net Num Status Summary (647 total including feature requests) ===[*Compile Issues]== 39372 Suspended Incompatibility in the PHP API. 39591 Open ./configure flag failure ===[*Configuration Issues] 37919 Open PHP doesn't read the configurations propertly ===[*Directory/Filesystem functions] 38591 Open Memory Leak when using pathinfo and DirectoryIterator __toString 39351 Open require and include fails to open file in current directory ===[Apache related]=== 36724 Assigned Fix for #35646 incorrect ===[Apache2 related]== 32220 Assigned [PATCH] thread_resources for thread not getting freed when apache kills thread 38141 Suspended $_SERVER['SCRIPT_NAME'] set incorrectly with mod_rewrite 39201 Assigned POST with invalid content-length and ErrorDocument set crashes php 39330 Assigned apache2handler does not call shutdown actions before apache child die 39484 Open intermittent include failure under symlinked virtual hosts ===[Arrays related]=== 31453 Open array_rand() is not returning random values 35163 Assigned Array elements can lose references. 39337 Open Array creation when using overloading (__get) does not work (NULL) ===[Bzip2 Related] 29521 Assigned compress.bzip2 wrapper ===[CGI related]== 28227 Assigned PHP CGI depends upon non-standard SCRIPT_FILENAME 31892 Verified PHP_SELF incorrect without cgi.fix_pathinfo, but turning on screws up PATH_INFO 38274 Assigned Memlimit fatal error sent to "wrong" stderr when using fastcgi ===[Class/Object related]= 36694 Assigned unserialize method is not called on an object when session is restored 39435 Assigned wrong instanceof results 39721 Open __autoload and inheritance causes data corruption ===[COM related]== 31327 Assigned chinese char and word problem 32099 Assigned After opening ADO connection and closing it repeatedly, Apache stops service 33188 Assigned Cannot instantiate a DOTNET object 33386 Assigned ScriptControl only sees last function of class 33734 Assigned Something strange with COM Object 33912 Assigned Crash when trying to access registry using com 34253 Assigned COM binary object/array issue (question marks?) 34297 Assigned get_object_vars on COM object produces Apache error 34440 Assigned COM Error confuse with [] () 34564 Assigned reference (in/out) parameters don't work 35872 Assigned CLI errors upon exit if class is left on IE 35875 Assigned IE event failure upon scheduling script 36360 Assigned PHP crashes when accessing an object that was just create by parent object 36959 Open ReadRecords Method (Crystal Reports XI) Hangs 37274 Open Array style COM property access 37562 Open Unable to lookup "ParameterFieldDefinitions" 37588 Open COM Property propputref converts to PHP function and can't be accesed 37927 Assigned newwindow2 & newwindow 37965 Assigned Multi-dimensional array between PHP and COM 38021 Open Uncaught exception 'com_exception' 38719 Assigned COM Error during accessing function VirtualMachines 38840 Assigned The Microsoft Virtual server COM object works with VB script but not on PHP 39145 Open OUT Parameter is not changing 39596 Assigned VT_ARRAY 39606 Assigned Use of com.typelib_file in PHP.ini STILL causes A/V ===[Compile Failure]== 37610 Assigned win32build has incorrect expat, PHP non-buildable 38762 Assigned build dir != src dir results in "Zend/zend_language_parser.c: No such file" 39045 Open Compilation of libphp5.la fails (UW-IMAP libc-client.a related) 39130 Assigned Compile failure with the compiler of VC++ 2005 39394 Assigned Make failed with openssl compilation option 39642 Feedback Compile with mysql5.0.27max error 39697 Feedback apxs:Error: Command failed with rc=65536 ===[Compile Warning]== 38515 Suspended Warnings during compile 38702 Assigned Getting odbc warnings during compilations ===[cURL related]= 39687 Feedback compile fails due to undefined references ===[Date/time related] 37358 Assigned date_sunrise() date_sunset() handle main zone offset but not count summer time 39139 Assigned Last month bug 39722 Open
[PHP-DEV] Re: [PHP 4.4.5 / Apache 2.2.3] Abrupt and unrepeatable Segmentation fault (11)
Looks like an ipv6 issue. Did you try to re-compile without ipv6? "Jan Schröter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all! I'm having trouble with my server(s) for some weeks now and did not > find > any solution for now. My System is Opensuse 10.1 (32 bit) with Apache 2.2.3 > and > PHP 4.4.5-dev as apache module (latest stable CVS, but wasn't the solution). > > Im having abrupt segmentation faults in my Apache errorlog. Most frequently > the > problem seems to appear while accessing the start page of an actual Joomla > installation, but i've had the error with an Worpress too. So it cannot be > isolated to some php Scripts. Sadly i am not able to reproduce this error - > when > it appears it will not go until an apache restart, but then everything works > fine for some time (maybe hours or even days). > > Here is a gdb backtrace of the request which died with a segmentation fault. > Hopefully someon can help me with this. If you need any further details, tell > me, and please also tell me how to obtain this information ;-). > > #0 0xb7fa91a4 in do_lookup_x () from /lib/ld-linux.so.2 > #1 0xb7fa9587 in _dl_lookup_symbol_x () from /lib/ld-linux.so.2 > #2 0xb7fad24d in _dl_fixup () from /lib/ld-linux.so.2 > #3 0xb7fb2630 in _dl_runtime_resolve () from /lib/ld-linux.so.2 > #4 0xb70f6029 in internal_getent () from /lib/libnss_files.so.2 > #5 0xb70f6332 in _nss_files_gethostbyaddr_r () from /lib/libnss_files.so.2 > #6 0xb7ddec22 in gethostbyaddr_r@@GLIBC_2.1.2 () from /lib/libc.so.6 > #7 0xb7ddea32 in gethostbyaddr () from /lib/libc.so.6 > #8 0xb79157fe in zif_gethostbyaddr (ht=1, return_value=0x8741224, > this_ptr=0x0, > return_value_used=1) > at /usr/src/packages/BUILD/php4-4.4.4/ext/standard/dns.c:125 > #9 0xb79b86ab in execute (op_array=0x856ff84) at > /usr/src/packages/BUILD/php4-4.4.4/Zend/zend_execute.c:1675 > #10 0xb79b42c7 in execute (op_array=0x856b3cc) at > /usr/src/packages/BUILD/php4-4.4.4/Zend/zend_execute.c:1719 > #11 0xb79a221e in zend_execute_scripts (type=8, retval=0x0, file_count=3) at > /usr/src/packages/BUILD/php4-4.4.4/Zend/zend. > #12 0xb7975215 in php_execute_script (primary_file=0xbfaee9d4) at > /usr/src/packages/BUILD/php4-4.4.4/main/main.c:1752 > #13 0xb79bc600 in php_handler (r=0x8596e68) at > /usr/src/packages/BUILD/php4-4.4.4/sapi/apache2handler/sapi_apache2.c:581 > #14 0x080796f9 in ap_run_handler () > #15 0x08079e43 in ap_invoke_handler () > #16 0x0809c1e0 in ap_process_request () > #17 0x08098d62 in ap_process_http_connection () > #18 0x08081b2b in ap_run_process_connection () > #19 0x08081f38 in ap_process_connection () > #20 0x080be32f in child_main () > #21 0x080be511 in make_child () > #22 0x080be762 in perform_idle_server_maintenance () > #23 0x080bec8c in ap_mpm_run () > #24 0x08062f06 in main () > > kind regards > Jan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: aiska
Education -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: wormus
commit to PEAR's Validate_Finance co-lead with Stefan Neufeind -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: [PHP 4.4.5 / Apache 2.2.3] Abrupt and unrepeatable Segmentation fault (11)
Dmitry Dartz wrote: Looks like an ipv6 issue. Did you try to re-compile without ipv6? I already stumbled on this possible issue and recompiled my php without ipv6 support (--disable-ipv6). But it didn't work anyway. Here is my complete configure line: './configure' '--prefix=/usr/' '--datadir=/usr/share/php/' '--bindir=/usr/bin/' '--libdir=/usr/share/' '--with-exec-dir=/usr/lib/php/bin/' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php4-config' '--enable-force-cgi-redirect' '--enable-memory-limit' '--enable-sigchild' '--enable-track-vars' '--enable-trans-sid' '--disable-ipv6' '--with-mysql=no' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-dbase' '--enable-exif' '--enable-filepro' '--enable-ftp' '--enable-magic-quotes' '--enable-mbstr-enc-trans' '--enable-mbstring' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--with-gettext' '--with-gmp' '--with-mcrypt' '--with-mcal=/usr/' '--with-iconv' '--with-mcrypt' '--with-zlib' '--with-bz2' '--with-openssl=/usr' '--with-pear' '--with-apxs2=/usr/sbin/apxs' kind regards jan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Making a method called "list" or other "language constructs" names.
Hello there :] I wanted to build a method called "list". The problem is that once I do that, I get a "PHP Parse error: syntax error, unexpected T_LIST, expecting T_STRING" error, because it's a "language construct". Here's the code that leads me to this error : list(); ?> So I made it working with a "__call" magic method, like this : list(); ?> And it works. So there's my question : why can't we make methods with the same name as those used by "language constructs" ? I don't see the point. Even less if you can make it work with the __call magic method. Does someone have an explanation ? Is there a way to make this possible for future versions of PHP, so that the classes namespace is really independent ? Don't tell me to use another name. Writting code like : $books->list('all'); or : class Books extends Controller { function list () { # Instructions to list all books } } makes things so much easier to read and self explanatory than putting, for example, a "_" in front of it (_list). Thanks :] Urbanose -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Making a method called "list" or other "language constructs" names.
On 12/04/2006 05:22 PM, Urbanose wrote: And it works. So there's my question : why can't we make methods with the same name as those used by "language constructs" ? I don't see the point. http://www.php.net/manual/en/reserved.php The point is that these names are reserved by the parser and cannot be used for other purposes. -- Wbr, Antony Dovgal -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] IDE for PHP development
What IDEs are people using and prefer for PHP development? preferably on Linux or Mac OS X? I'm just starting to poke around in the internals, and it would be very helpful to have something that let me jump to definitions. e.g. when I see a macro named RETURN_TRUE in an apparently void method, I'd like to be able to find the definition of that macro. On a related note, is there any developer level documentation of PHP's internals anywhere that might answer these sort of questions? I've looked around but I don't see any. If there is any information about how to hack on PHP, my google searches keep missing it in the copious amount of information about how to hack with PHP. :-) -- Elliotte Rusty Harold [EMAIL PROTECTED] Java I/O 2nd Edition Just Published! http://www.cafeaulait.org/books/javaio2/ http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] IDE for PHP development
On 12/04/2006 05:48 PM, Elliotte Harold wrote: What IDEs are people using and prefer for PHP development? preferably on Linux or Mac OS X? I'm just starting to poke around in the internals, and it would be very helpful to have something that let me jump to definitions. e.g. when I see a macro named RETURN_TRUE in an apparently void method, I'd like to be able to find the definition of that macro. For such things you can use any editor with ctags/cscope support. On a related note, is there any developer level documentation of PHP's internals anywhere that might answer these sort of questions? I've looked around but I don't see any. If there is any information about how to hack on PHP, my google searches keep missing it in the copious amount of information about how to hack with PHP. :-) These links should be useful: http://www.php.net/manual/en/internals.php http://www.amazon.com/Extending-Embedding-PHP-Developers-Library/dp/067232704X/sr=8-1/qid=1165244412/ref=sr_1_1/002-2389427-7040856?ie=UTF8&s=books -- Wbr, Antony Dovgal -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] IDE for PHP development
Hi, There is a great tutorial on zend devzone. It's split in 3 (or actualy 4) parts: http://devzone.zend.com/node/view/id/1021 - Part I: Introduction to PHP and Zend http://devzone.zend.com/node/view/id/1022 - Part II: Parameters, Arrays, and ZVALs http://devzone.zend.com/node/view/id/1023 - Part II: Parameters, Arrays, and ZVALs (continued) http://devzone.zend.com/node/view/id/1024 - Part III: Resources Best regards, Arnold Elliotte Harold schreef: What IDEs are people using and prefer for PHP development? preferably on Linux or Mac OS X? I'm just starting to poke around in the internals, and it would be very helpful to have something that let me jump to definitions. e.g. when I see a macro named RETURN_TRUE in an apparently void method, I'd like to be able to find the definition of that macro. On a related note, is there any developer level documentation of PHP's internals anywhere that might answer these sort of questions? I've looked around but I don't see any. If there is any information about how to hack on PHP, my google searches keep missing it in the copious amount of information about how to hack with PHP. :-) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Function call speedup (CV applied to functions)
Looks fairly interesting, I doubt 18% is consistent benefit across the board, and when unicode overhead is removed is probably less still. But, it does look like a good optimization to make that would certainly make PHP faster then before. Ilia Alshanetsky -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Temporarily overriding memory limit in extension
Richard Thanks very much for your replies -- I need all the help I can get :) In any case, I was under the impression from the php.ini setting 'session.gc_probability' that script memory was not necessarily freed when the script ends. Is this not correct? Bruce From: "Richard Lynch" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: "Bruce Bailey" <[EMAIL PROTECTED]> Subject: Re: [PHP-DEV] Temporarily overriding memory limit in extension Date: Fri, 1 Dec 2006 14:41:35 -0600 (CST) Not only is the php.ini value reset, all the stuff your script allocated is gone when the script ends anyway. Not counting any kind of "fork" or something you did in SQL or shell or something that chewed up memory, of course, but anything PHP has control over is cleared out. On Fri, December 1, 2006 12:32 pm, Bruce Bailey wrote: > Thanks, that might work to change the limit. When I reset it at the > end of > the script, wouldn't the next script to be run by the Apache child be > aborted since the amount of memory in use is now over the limit? > > Bruce > > >>From: Stanislav Malyshev <[EMAIL PROTECTED]> >>To: Bruce Bailey <[EMAIL PROTECTED]> >>CC: internals@lists.php.net >>Subject: Re: [PHP-DEV] Temporarily overriding memory limit in >> extension >>Date: Fri, 01 Dec 2006 10:11:48 -0800 >> >>>Hi >>> >>>Some of my PHP scripts use a large volume of memory. Is there a way >>> I >>>can: >>> >>>1) Increase the script memory limit, and >>>2) Force a garbage collect at script end (and reset the limit). >> >>From PHP, I guess you could do ini_set("memory_limit"), unless you >> are >>running in safe mode. >> >>-- >>Stanislav Malyshev, Zend Products Engineer >>[EMAIL PROTECTED] http://www.zend.com/ >> >>-- >>PHP Internals - PHP Runtime Development Mailing List >>To unsubscribe, visit: http://www.php.net/unsub.php >> > > _ > All-in-one security and maintenance for your PC. Get a free 90-day > trial! > http://clk.atdmt.com/MSN/go/msnnkwlo005002msn/direct/01/?href=http://clk.atdmt.com/MSN/go/msnnkwlo005001msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? _ Get the latest Windows Live Messenger 8.1 Beta version. Join now. http://ideas.live.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Function call speedup (CV applied to functions)
Looks fairly interesting, I doubt 18% is consistent benefit across the board I doubt it very much too. While I made that test to strip out non-fcall overhead, I also made it favor the effect being produced by constantly calling the same function from the same scope. Reality isn't like that. and when unicode overhead is removed is probably less still. My numbers were based on unicode.semantics=off just FYI... it does look like a good optimization to make that would certainly make PHP faster then before. I suspect optimized class fetches will help several cases too: foo::bar(); foo::baz(foo::BLING); Just not going to bother working on that unless it sounds worth doing to enough people. -Sara -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] sapi reference api documentation ? how to externalise sapi as dyn dso like a php module ?
Hi all, have two question! the first is where i can find documentation (other than the php source...!) about developping new sapi? if exist !? and for the seconds, have seen in differente sapi source that work like apache module and php module, with a struct who point to differente handler that abstract the handler in the sapi space... my question is how to make php engine dynamicly loadable in sapi... not embedable has embed sapi... but as sapi main executable (developp and compiled separatly) that load php engine as dso! the interest is the possibility to developpe externalised sapi! you can build php engine once and use it in other project and package it and make the possibility to build (like phpize) a new sapi from php engine already installed! have seen embed version but this version hook some of the sapi handler arbitraly... and does not make possible to hook this and other sapi handler after loading embed version... the idea is to be abel to hook all sapi handler after loaded the php engine... i'm not sure have explane correctly my idea.. excuse for my bad english... Best Regards, Mathieu
Re: [PHP-DEV] Function call speedup (CV applied to functions)
On 4-Dec-06, at 11:40 AM, Sara Golemon wrote: Looks fairly interesting, I doubt 18% is consistent benefit across the board I doubt it very much too. While I made that test to strip out non- fcall overhead, I also made it favor the effect being produced by constantly calling the same function from the same scope. Reality isn't like that. and when unicode overhead is removed is probably less still. My numbers were based on unicode.semantics=off just FYI... That's good, although unicode based PHP does have a number of additional checks not present in non-unicode version (not-PHP6). it does look like a good optimization to make that would certainly make PHP faster then before. I suspect optimized class fetches will help several cases too: foo::bar(); foo::baz(foo::BLING); Only for native classes though. Ilia Alshanetsky -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Temporarily overriding memory limit in extension
In any case, I was under the impression from the php.ini setting 'session.gc_probability' that script memory was not necessarily freed when the script ends. Is this not correct? session garbage collection does not refer to script memory, it refers to the session data stored in persistent storage (depending on session module, by default on disk). -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] make test flag?
Hello Luca, we cannot do that. This patchwould prevent loading of any shared extension. And we decided against using dl() in the test scripts some years ago. The only thing we can do here is having a new make thing that does pass -n to the test script. Once again, we test what you will be using, not only part of it. If a deployment system hass a problemwith that we need tofind otehr solutions. In fact we already have anenvironment variable today that serves the purpose. Simply set TEST_PHP_ARGS=-n and be done (if you know what it really does) :-) best regards marcus Saturday, December 2, 2006, 10:15:11 PM, you wrote: > Ilia Alshanetsky wrote: >> On 1-Dec-06, at 6:21 PM, Marcus Boerger wrote: >> >>> Hello Brian, >>> >>> why should it do that? run-tests.php doesn't do anything with >>> extensions. >>> Meaning it only tests when you load your .so's by ini. >> >> You can't really tell PHP to "unload" modules via an INI settings, so I >> think adding -n in there is a pretty good idea. > It is, in fact we already do it in Gentoos PHP, to avoid already > installed extensions interfering with the main PHP packages "make test" > (on reinstalls or upgrades for example). > Here are the patches I've made for this: > PHP 5.2.0 > http://overlays.gentoo.org/proj/php/browser/patches/php-patches/5.2.0/php5/php5-make_test.patch > PHP 5.1.6 > http://overlays.gentoo.org/proj/php/browser/patches/php-patches/5.1.6/php5/php5-make_test.patch > PHP 4.4.4 > http://overlays.gentoo.org/proj/php/browser/patches/php-patches/4.4.4/php4/php4-make_test.patch > You're probably not interested in the changes to the Makefiles and the > CGI/PHP4 testing changes I've done to meet Gentoos requirements, so just > skip those. Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] destruction of cross-referenced objects
Hi, I'm struggling with the problem that cross-referenced objects don't get destroyed. I can off course write a method to break the cross-reference, but that's kind of a pain in the butt, especially if the cross-reference is not strait forward. To solve this I'm thinking of building one of 2 thing: 1.) Write a destroy() function which works much like a close function on a recourse, changing the object to a zval of type 'unknown'. 2.) Specify that a property of an object does not count for the reference count of a zval. 3.) Write code to find cross-references and destroy the objects still. The first solution should be quite easy to implement, but you need to call destroy() to free the object, introducing the whole alloc/free responsibility thing to PHP. The second solution would require some extra keyword within the class, but require no special code within the code using the object. Though I wouldn't have a clue how how to implement this or what would be the consequences. I don't think the third solution is really possible or would at least cause performance problems. I could use some comment on this problem. Or perhaps I'm just looking at it from a complete wrong angle. Thanks, Arnold PS. I don't want to start a 'cross-referencing is wrong' discussion. I use it, because it's useful in some occasions.