[PHP-DEV] disable_classes
i reclassified http://bugs.php.net/bug.php?id=22481 to a feature request for adding disable_classes . if there are no objections i'm going to implement it that way. regards, Harald Radi -- nme - we can heal you http://www.nme.at Ortner Radi Schwenk GnbR Tumpenweg 528 5084 Grossgmain, Salzburg Austria -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] PHP 4.5.x-dev
sorry for this naive question, i just realized that we have php 4.5.x snapshots on snaps.php.net, i assume this is the PHP_4 branch. does that mean that PHP_4_3 and PHP_4 should kept synchronized ? is there also a PHP_4 branch in the Zend module or ist HEAD supposed to be PHP_4 ? regards, Harald Radi -- nme - we can heal you http://www.nme.at Ortner Radi Schwenk GnbR Tumpenweg 528 5084 Grossgmain, Salzburg Austria -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] #php.bugs invite only?
Andi Gutmans [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... At 12:12 PM 2/28/2003 -0500, Ilia A. wrote: On February 28, 2003 11:50 am, George Schlossnagle wrote: #php.bugs seems to be invite only now. How do I go about getting myself invited? It would appear someone had accidentaly set the channel to invite only, it is fixed now. I mailed Jani with the same question :) Andi but your bouncer was always in, zeev :) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] RE: PHP, Windows and COM.
hi richard The problem with some of the VBA functions is that the first and last parameter need to be set and the ones in the middle have no meaning and cannot be present. This can only be achieved by using named parameters. The GoTo method, as a function, in VBA would be ... sooner or later everything ends up in a native c(++) function call and there are no such things as named parameters. therefore nonpresent parameters will be assigned a default value (iirc NULL if no explicit default value is specified.) so try calling GoTo(wdGoToBookmark, NULL, NULL, BookmarkName); or, if it doesn't work $empty = new VARIANT(); GoTo(wdGoToBookmark, $empty, $empty, BookmarkName); the difference is, that there exists two different variant types with nearly the same meaning, VT_NULL and VT_EMPTY. PHP's NULL will be marshalled to VT_NULL, VT_EMPTY has to be created by explicitly creating an empty variant container in php. ad. your previous question: there are two other ways of importing a type library, you can either com_load_typelib(Word.Application) which will search for the typelib assigned to that component or you can enable com.autoregister_typelib in your php.ini which will cause php to load the typelib for every component you instanciate. harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] RE: PHP, Windows and COM.
hi richard, currently there is no way of calling a function with named arguments. your proposed array syntax wouldn't allow for passing arrays. on the other hand variant arrays can only be indexed arrays and not hash arrays so i could treat all string indices as named parameters. this would be a possibility though i still find it very confusing. if anybody has a good suggestion that is feasable on top of the engine (meaning without modifying the scanner/parser) don't hesitate to post it to the list. back to your actual problem: you still can call all functions without naming parameters, though you have to specify the full list of parameters up to at least the last optional parameter that should not be set to its default value (uuh, does this make sence ? actually its exactly the same as calling a php function with optional parameters). you can look up the default values for optional parameters in the components typelibrary which is browsable using the oleview tool. i hope that helps. regards, Harald Radi -- nme - we can heal you http://www.nme.at http://www.nme.at/ Ortner Radi Schwenk GnbR Tumpenweg 528 5084 Grossgmain, Salzburg Austria -Original Message- From: Richard Quadling [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:53 PM To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: PHP, Windows and COM. Hi. As authors of the COM.c within the PHP Source code, I am hoping one of you clever people can help me. I am trying to use PHP to control MS Word. Simple stuff like opening a document, writing and saving I have no problem with, and many of the online tutorials on this show this and very little else. My problem is that I want to use functions from within Word where the parameters would be named. e.g. In VBA, the GoTo function is defined as; expression.GoTo(What, Which, Count, Name) The following examples are all valid. Selection.GoTo What:=wdGoToHeading, Which:=wdGoToFirst Selection.GoTo What:=wdGoToHeading, Which:=wdGoToAbsolute, Count:=1 Selection.GoTo What:=wdGoToField, Name:=Date The What parameter can be ... wdGoToBookmark wdGoToComment wdGoToEndnote wdGoToEquation wdGoToField wdGoToFootnote wdGoToGrammaticalError wdGoToGraphic wdGoToHeading wdGoToLine wdGoToObject wdGoToPage wdGoToPercent wdGoToProofreadingError wdGoToRevision wdGoToSection wdGoToSpellingError wdGoToTable The Which parameter can be ... wdGoToAbsolute wdGoToFirst wdGoToLast wdGoToNext wdGoToPrevious wdGoToRelative All the parameters are optional. Not all work together. For example, you can't say goto the page named fred as pages don't have names! The problem I have within PHP is I can't work out how to use any function that has optional parameters. e.g. $word-Documents[1]-GoTo(array(What=wdGoToBookmark,Name=YourName)); $word-Documents[1]-GoTo(wdGoToBookmark,YourName); etc. The function seems to have been defined as requiring 4 parameters from PHP's pov. Is there any known method within PHP to support named parameters for COM functions that have optional parameters. Search and Replace is another one I can get working, which is why I tried using bookmarks, but still no joy. Now, if I've lost the plot, then let me know. Alternatively/also, how do I know what typelibrary to load? Is ... com_load_typelib(C:\\Program Files\\Common Files\\Microsoft Shared\\Office10); correct when ... ?php set_time_limit(0); error_reporting(E_ALL); com_load_typelib(C:\\Program Files\\Common Files\\Microsoft Shared\\Office10); $word = new COM(word.application) or die(Unable to create Word); print Loaded Word, version {$word-Version}\n; $word-Documents-Open(C:\\Empty.DOC); print Document loaded; $word-Documents[1]-GoTo(array(What=-1,Name=YourName)); print Goto 1 done; $word-Selection-TypeText({$_GET['YourName']}); print Typetext 1 done; $word-Documents[1]-GoTo(array(What=-1,Name=YourAge)); print Goto 2 done; $word-Selection-TypeText({$_GET['YourAge']}); print Typetext 2 done; $word-Documents[1]-SaveAs(C:\\filled.doc); print New saved document; $word-Quit(); $word-Release(); $word = null; print Word closed.\n; ? The word document has 2 bookmarks. I called YourName and one called YourAge. The above script is called as word.php?YourName=RichardYourAge=35 Please help! Regards, Richard Quadling
[PHP-DEV] #22111
beside that there's no need for escaping the double quotes in his example, shouldn't the transsid parser recognize them ? i mean i can come up with other examples where escaping them is necessary. http://bugs.php.net/?id=22111edit=1 waiting for any rfcs or isos. regards, Harald Radi -- nme - we can heal you http://www.nme.at Ortner Radi Schwenk GnbR Tumpenweg 528 5084 Grossgmain, Salzburg Austria -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Mono PHP
Why PECL and not add it to ext/rpc? ext/rpc should be able to load rpc backend modules, or PECL is the only sensible place to put it (especially when it's experimental!). We really don't want to mix java, mono, xmlrpc, soap and whatnot into a single package. in case you don't know, there is no need for rpc backends to live inside ext/rpc nor do they have to be compiled into a single extension. rpc backends can be ordinary php extensions that register their rpc entry at the rpc extension just like they would register their class entry at the engine. so moving php-mono to pear doesn't mean that it can't be a rpc backend. the only valid reason atm is that ze2 beeing alpha, ext/rpc beeing alpha and mono beeing whatever together with sterlings bad coding style :) would result in a phreaky peace of software with totally unpredictable results. harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] OO in PHP5 (was zend_API.c on php-dev)
if you want to throw an exception you necessarily have to declare an exception class. but i still don't get the difference wheter this is done in c or php code and how it actually fits into the original discussion which was about a completely different thing. regards, Harald Radi -- nme - we can heal you http://www.nme.at Ortner Radi Schwenk GnbR Tumpenweg 528 5084 Grossgmain, Salzburg Austria -Original Message- From: Timm Friebe [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 11:53 AM To: Harald Radi Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] OO in PHP5 (was zend_API.c on php-dev) On Tue, 2003-02-04 at 13:05, Harald Radi wrote: ? harald Well, you were talking about throwing exceptions from within C sourcecode, weren't you? You would need a zend_class_entry to throw - but what should this point to? You would probably go ahead and declare an exception class (in your extension, in the Zend Engine?) - which I do not think of as a good idea due to the mentioned reasons. - Timm -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] OO in PHP5 (was zend_API.c on php-dev)
? harald Timm Friebe [EMAIL PROTECTED] schrieb im Newsbeitrag news:1044352391.22055.58.camel@localhost... On Mon, 2003-02-03 at 21:20, Harald Radi wrote: [...] when called as function - print warning when called as method - throw exception What exception? There are no builtin exceptions and IMHO it would be better to leave writing such up to the user. E.g. I'd like to be able to have _all_ my classes extend my Object class, including my own Exception class. Plus, I prefer the Java style notation Exception::getMessage, Exception::toString, Exception::printStackTrace, Exception::getStackTrace, Object::getClass. If any exception class were to be integrated into PHP5, it would: a) not extend my Object class b) probably have methods such as get_message (following the PHP naming conventions) c) not have getStackTrace return an array of StackTraceElements. Other users might prefer differing notations in their framework, will disagree on inheritance issues with Object (this is unneccessary bloat) or want a slightly different stack trace (consisting of an associative array, not those stupid StackTraceElement things). This has actually been discussed on the engine2-List and IIRC, builtin-anything-classes being forced on users was decided against. Side note: Whithin the mentioned thread, even amongst those liking the idea of builtin exceptions, no consensus on how to name these classes could we reached (Exception? exception? __exception?). Conclusion: Don't even try to write exception classes for PHP5 in C. You will never please all of the users' needs - so simply leave it up to them. - Timm -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: zend_API.c
hi andrei, what would you think if we add a zend_parse_method_parameters() function to the parse parameters API ? as you're maintaining that part of the code i thought it would be a good idea to ask you first, before i'm going to commit something. :) to be serious: it is not yet used anywhere, so we can still change it however we want. if you think it doesn't belong there we can even remove it, but i already needed that functionality in 3+ extensions and i guess you even will like it for your gtk stuff. i even have to review the thing as i don't think it that it works as expected right now, but i was in a hurry yesterday and made a skeleton for georgs mysqli extension which needed that functions. i also postet a message to php5-dev first but somehow it doesn't show up there (?). harald. Andrei Zmievski [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... 2003-02-02 Harald Radi [EMAIL PROTECTED] * zend_API.c zend_API.h: extend the parameter parsing API by two functions for parsing method parameters with automatic detection if the function was called as such or as a class method (with a valid this ptr). if called as a function the first parameter has to be the object it is operating on, if called as a method this is used. Would have been nice of you to talk with me about this first, since I maintain that code. -Andrei http://www.gravitonic.com/ * Use the source, Luke. * -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: can't get wincvs to ask for login
menu - admin - login Greg Beaver [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... Hi, I'm trying to commit some changes, and can't get wincvs to log me in or even to request a password with pserver. I've changed the username from cvsread to cellog. Anyone with wincvs experience know how to make the stupid thing work? Greg -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] RE: zend_API.c
-Original Message- From: Andrei Zmievski [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 4:04 PM Continuing from IRC discussion: why do we need extensions that provide both function and object APIs for the same functionality? Are we trying to emulate Perl or something? To me, that is introducing more confusion for the sake of flexibility. I am strongly of the opinion that we should stick to having it one way or the other. because people prefer either the one or the other way to manipulate things. people not familiar with oo will most likely not not stick with the oo api nor will they be happy if they're forced to use it. on the other hand people writing their scripts entirely oo will propably hate it to mix function calls with method invokations all the time. furthermore functions are supposed to issue warnings and methods are supposed to throw exceptions, two entirely different concepts of error handling where neitherone is preferable. so the question is to give rope or not. harald. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] RE: zend_API.c
From: Andrei Zmievski [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 4:18 PM so the question is to give rope or not. Ugh, so following your line of reasoning we should rewrite all extensions to provide both function and OO apis? A better approach would be to have extensions provide only function API and then write a PEAR class to expose them as objects. that would be a big step back again for several reasons: -) if done in c code you have one function serving as function and method, thus you have the same order/amount of arguments for the function _and_ the method. -) if something changes in the code, it automatically changes for the function and the method, if we had a pear class someone would have to maintain that. -) we finally brought down the cost of handling object beeing virtually the same as for handling resources, so why should we try that hard to make the damn thing slow again ? -) the errorhandling issue is not (easily) coverable if we simple wrap the funcitons as pear classes. harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] RE: zend_API.c
-) we finally brought down the cost of handling object beeing virtually the same as for handling resources, so why should we try that hard to make the damn thing slow again ? You are proving my point - the cost of handling objects is minimal, so why not do it in userland? because then we have userland - ze2 oo - userland - php function instead of userland - php function. maybe that's negligable, i didn't benchmark it. -) the errorhandling issue is not (easily) coverable if we simple wrap the funcitons as pear classes. What errorhandling issue? exception vs. warning. harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] RE: zend_API.c
On Mon, 03 Feb 2003, Harald Radi wrote: because then we have userland - ze2 oo - userland - php function instead of userland - php function. maybe that's negligable, i didn't benchmark it. Hmm, care to explain this? It should just be object call - PHP function call. if $obj is an overloaded object $obj-method() would directly call the native implementation of method(), if it is a pear object, $obj-method() will result in a userspace method invokation that actually calls the native implementation adding a further level of indirection for each method call. for something like while($mysqli-fetch_row()) {} this could be an issue (though i don't know how much of an issue). exception vs. warning. The underlying function can still print warning. No exceptions needed. you're missing the point. if i invoke a method i don't expect it to print a warning, i expect it to throw an exception (most likely) and imho this is the prevailing opinion in oo. harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] RE: zend_API.c
It's a difference between doing a call_user_function_ex() and invoking the handler directly. i don't get your point. how would such a pear class look like ? you're missing the point. if i invoke a method i don't expect it to print a warning, i expect it to throw an exception (most likely) and imho this is the prevailing opinion in oo. No, I'm not missing the point. How is this going to be achieved with your approach? You have the same function handling both function and OO API? Is it going to throw exception based on how it's called? yup, that was the idea. harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] writing test cases
that's not true guys, PHP4 is in the PHP_4_3 branch and if you don't explicitely commit the tests to that branch they won't be there. HEAD is PHP5. there's no need for comparing versions or whatever except if you want to make one test work differently for both php versions. harald Moriyoshi Koizumi [EMAIL PROTECTED] schrieb im Newsbeitrag news:20030204015827W=3'[EMAIL PROTECTED]... Kai Schröder [EMAIL PROTECTED] wrote: In addition to my yesterday's mail I've found a new broken test: tests/lang/bug21961.phpt Fixed. Thanks for the notification. Moriyoshi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Using CLI as a shell
There is a difference between interactive mode and this idea. The idea was to execute every single line. So if you type 'echo Hello\n; and press enter Hello should be displayed. i like this idea, so i no longer have to type echo Hello on my bash prompt :) harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] OO in PHP5 (was zend_API.c on php-dev)
Hrmfpsd, while commiting a new functions the parameter parsing API i appearently brought up a discussion about the meaning of life and stuff :) As asked by Andi i'm bringing the discussion to php5-dev with a short summary: andrei's point: extensions should stick to either functional or oo API PEAR wrappers can be provided my point: extensions should expose both APIs (if desired) can be done by aliasing functions to class methods - no duplicate c code when called as function - print warning when called as method - throw exception What do you guys think of this ? regards, Harald Radi -- nme - we can heal you http://www.nme.at Ortner Radi Schwenk GnbR Tumpenweg 528 5084 Grossgmain, Salzburg Austria -Original Message- From: Andi Gutmans [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 9:10 PM To: Harald Radi; 'Andrei Zmievski' Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] RE: zend_API.c Hey, I think the discussion you guys are having is much broader than just mysqli. We should probably come up with a general approach which we will use consistently for PHP 5. I suggest we move this discussion to the PHP 5 dev list and try and come up with a good solution. Obviously we will keep the functional support for all extensions like PHP 4. The only question is, if and how we support an OO paradigm. Andi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Problem with compiling Zend 1
HEAD is not meant to compile with ZE1, check out the PHP_4_3 branch if you need ZE1 builds. harald Andrey Hristov [EMAIL PROTECTED] schrieb im Newsbeitrag news:01c701c2c172$99b03650$1601a8c0@andreywin... Hi, I am still with ZE1 - php4 (HEAD) I have this problem : /home/andrey/development/php4/ext/standard/basic_functions.c: In function `php_simple_ini_parser_cb': /home/andrey/development/php4/ext/standard/basic_functions.c:2827: `ZEND_INI_PARSER_POP_ENTRY' undeclared (first use in this function) /home/andrey/development/php4/ext/standard/basic_functions.c:2827: (Each undeclared identifier is reported only once /home/andrey/development/php4/ext/standard/basic_functions.c:2827: for each function it appears in.) Just commenting the line line with the case helps. Andrey -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: php4 /ext/standard file.c formatted_print.c
iirc the reason why i changed it to unsigned was that actually the zend engine treated it as unsigned everywhere but in that particular struct. i also remember that i discussed that with andi and that he agreed to change this in the ze2 cvs module and that the extensions should be *fixed*. i agree that it doesn't make any sense to mix types. changing it to uint means to fix all the extensions, changing it to int means to fix the engine (and not just to revert my patch). harald. I might be misunderstanding the problem and I didn't have time to read the phrack article, but doesn't this mean that leaving it unsigned is better? It wouldn't pass the length check and thus, memcpy() wouldn't convert a negative number to something huge. The problem is that every single line of existing PHP extensions, both public and non-public, would need to be audited, if we were to switch the type, because 100% of the current code misinterpretes data from the ZE2 API right now. Changing the API does not solve the existing problem, it merely adds to it. For example, you can add a single central check to the engine today which checks string lengths to be at least 0. If the length field was changed to an unsigned type permanently, such a check would be impossible to implement in a portable way, because C does not define how a negative number will appear when cast to an unsigned type. - Sascha -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] Re: php4 /ext/standard file.c formatted_print.c
From: Sascha Schumann [mailto:[EMAIL PROTECTED]] iirc the reason why i changed it to unsigned was that actually the zend engine treated it as unsigned everywhere but in that particular struct. i also remember that i discussed that with andi and that he agreed to change this in the ze2 cvs module and that the extensions should be *fixed*. Well, fixing the engine is a small, finite task whereas auditing all existing extension on this planet is an open-ended one. I think it is easy to see that. you're propably a bit too optimistic, i can hardly imagine that all existing extensions all over the world compile out of the box against ZE2. i guess only a handful do this. You need to realize that once a certain API has been established, you cannot go around and change it at will. Especially if the breakage is as subtle as in this case. If the compiler dies, because a function takes a new number of arguments, it is something which becomes visible immediately. Signedness issues are usually hidden until someone exploits them. the only thing that should be realized is that compiler warnings are still a bad thing(tm). i don't see any difference in this compared to changing the number of arguments of a function. i agree that it doesn't make any sense to mix types. changing it to uint means to fix all the extensions, changing it to int means to fix the engine (and not just to revert my patch). In which areas of the engine did you notice defects? If we had a list, we could start from there. hmm, that patch is quite old, i can't remember very well. iirc almost everywhere, but i have to look at my commit again. harald. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] php.exe - php-cgi.exe
Andrei Zmievski [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am actually in favor of CLI executable being 'php'. If it's a problem on Windows, then we could possibly compromise and have the CGI version being called php.exe, but I think that it's important we keep it 'php' on UNIX. reconfiguring iis to point to a new cgi is not a simple searchreplace as it is for other webservers, thus reconfiguring a site with many virtual webservers can be a horrible task. anyways the administrator is free to rename it back to php.exe, but in no case i would name both, the cli and the cgi, php.exe, that will cause lots of confusion imho. harald * Change is the only constant. * what will acceleration be in that context then ? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: sapi/fastcgi
What happens to sapi/fastcgi, now that we have FastCGI support in sapi/cgi? IMHO, it should be removed for PHP 4.3.0 already. as neither of them works you can remove both :) harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] Re: sapi/fastcgi
i wasn't able to run it succesfully on windows. i can compile it and the binary actually works, but it exits after each request instead of keep running. but this is on my todo list for the christmas holidays, so stay tuned :) harald -Original Message- From: Stanislav Malyshev [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 5:29 PM To: Harald Radi Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] Re: sapi/fastcgi HR as neither of them works you can remove both :) What do you mean neither works? I have Zeus/PHP/FastCGI install with PHP 4.2.3 running here, seems working. Am I missing something? -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.109 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] sapi/milter
hi guys, a few minutes ago i checked in the first more or less working version of sapi/milter. once compiled the binary can be used as a sendmail milter plugin and you can process all mails in php. you can even change the script without having to restart the milter (except the milter_init() function will not be called a second time). an example showing all the possible callbacks provided by the sapi is here http://cvs.php.net/co.php/php4/sapi/milter/milter.php more info on milter and the api functions to process or reject mails can be found here (all api functions are mapped to php userspace) http://www.sendmail.com/partner/resources/development/milter_api/ regards, Harald Radi -- nme - we can heal you http://www.nme.at Ortner Radi Schwenk GnbR Tumpenweg 528 5084 Grossgmain, Salzburg Austria -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: ZendEngine2 / zend_static_allocator.c
ups, that was definitely not meant to be commited :) but having an emalloc like list of memleaks at the end of script execution is really nice, didn't know that msvc has this functionality out of the box. Andi Gutmans [EMAIL PROTECTED] schrieb im Newsbeitrag news:cvsandi1028822829@cvsserver... andi Thu Aug 8 12:07:09 2002 EDT Modified files: /ZendEngine2 zend_static_allocator.c Log: - Bad Harald! :) Index: ZendEngine2/zend_static_allocator.c diff -u ZendEngine2/zend_static_allocator.c:1.7 ZendEngine2/zend_static_allocator.c:1.8 --- ZendEngine2/zend_static_allocator.c:1.7 Wed Aug 7 10:47:42 2002 +++ ZendEngine2/zend_static_allocator.c Thu Aug 8 12:07:09 2002 @@ -16,7 +16,6 @@ +--+ */ -//#include stdlib.h #include zend_static_allocator.h -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: ZE2 and Exceptions - One for Zeev/Andi
one other (unrelated) thing : there seems to be an overlap between members of the zend_object_handlers struct and the zend_class_entry stuct (function pointers for property access and method calls). is the current state transitional (i.e. should all code going forward use only the zend_object_handlers way ?) then again i guess thats what macros and such are for you only need to set up the zend_object_handlers struct. theoretically you even don't need a zend_class_entry struct if you don't want the '$obj = new class();' syntax but create your objects through function calls '$obj = new_class();'. you can look at /ext/rpc/, both methods of creating objects are implemented there. BUT: (and i'm writing this in capitals so that andi and stas don't stop reading at the lines above) overloading of array members seems to be droped so far. i don't know how to handle $obj-arr[$x] as there is no callback for the array index. -harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: PHP_4_2_0 (stable) branch broken on win32
fixed. harald Edin Kadribasic [EMAIL PROTECTED] schrieb im Newsbeitrag news:014201c20b04$d235a160$[EMAIL PROTECTED]... Compile goes fine, but linker stops with: Creating library ..\Release_TS/php4ts.lib and object ..\Release_TS/php4ts.exp COM.obj : error LNK2001: unresolved external symbol _php_COM_export_as_sink COM.obj : error LNK2001: unresolved external symbol _php_COM_dispatch_init conversion.obj : error LNK2001: unresolved external symbol _php_COM_export_object ..\Release_TS\php4ts.dll : fatal error LNK1120: 3 unresolved externals Error executing link.exe. Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: PHP as an ActiveScript Engine
the more code i see the more ideas i have ;) harald. Wez Furlong [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey, I've been doing some tinkering over the last 24 hours and I've implemented IActiveScript (and friends) as a SAPI for win32/IE. What does that mean?? Well, it means that you can do things like this: (in IE) html ... script language=ActivePHP function clickit() { $GLOBALS[window]-open(http://www.php.net;); } /script img onclick=clickit(); /html Yes, that's PHP on the client side! You can also invoke the engine for Windows Script Hosts (or any other IActiveScriptSite implementation), and in theory you can even run scripts with a mixture of JScript, VBScript, Perl, Ruby and PHP in them, with methods calling in between the engines :-) Oh yeah - you can probably use it for ASP and ASP.NET too (haven't tried that yet!). What I have at the moment is still very experimental; the features that are missing are: - no event sinking (apart from declaring handlers in attributes) - error handler is not yet tied into the script host error/exception mechanism. - other engines cannot call into PHP yet. That's because we don't have a standard method of exporting PHP objects as IDispatch-able COM objects. Unfortunately, because PHP is so powerful, it's really not a good idea to author web pages for public consumption using client-side PHP. IE will warn you that viewing such a page is unsafe. I'm not bothered by that: my intention is to use it embedded in a win32 host application. The IActiveScript architecture is not too bad, so implementing this wasn't such a hardship. However, since the host may have multiple engines on the same thread, the php4activescript implementation creates a thread for each instance of a scripting engine. That lead to some interesting code to ensure that the right things were called in the right threads... Performance-wise, there are two things that would be really beneficial for php4activescript - although I dont expect to have these any time soon, I'm highlighting them in case someone has alternative solutions: - Delayed bindings for globals. The scripting hosts register a good dozen or so COM objects in the global namespace. PHP has to activate and make a couple of calls for each object imported in that way so that it can create a COM wrapper object (from the COM extension) for each object, even if it is not used. It would be nice to activate the object the first time the global symbol is used. - Scripting engine persistance mechanism. Being able to make a persistent (as in pmalloc) copy of zend_op_array's would do just fine. I know this is not easy because of all the emalloc'd data in there. Alternatively, it would be nice to be able to convert a zend_op_array back into a string representation of the code. The reason for this is that script hosts will create an instance of the engine, parse the script, clone the engine and then run the cloned instance. Because of the PHP architecture, we need to re-compile the code on the newly cloned thread :-/ Right, I'm going to delve back into it - I just wanted to sound things out, and see if anyone has any ideas about these things. --Wez. -- Wez Furlong The Brain Room Ltd. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: com Problems PHP 4.2
hi shelley, this is the wrong list for support questions. you should repost your question to php-win-help with all the required information (script, error message, ..). if you are sure that it is a bug in php and not an error in your script, then report it as a bug at http://bugs.php.net but i really think it is a user error. harald Shelley [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... Hello Everyone, Problem 1: It seems that only one com can be executed within a PHP page. On the second Com it won't do the function lookup it gives an error message. After testing this it appears won't recognize the second Com within the PHP page. Problem 2: A by ref doesn't pass back the changed values on a Com or an external function. It only pass the value to the function by not back. PHPpage - function1.inc - function2(same inc file). Anyone know if this is a limitation in PHP? Thanks, Shelley -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] Re: Addition to session-module (patch included)
can you explain me why this affects the url_scanner ? i'm a liar;-) i know ;) no, if architected smart it would make no real difference. but - do we really want it? session-data belongs into the session. this new function just allows you to identify different browser-windows within the same session (if used right). i really see no point in extending it -but- wait yes, you are right, session stuff belongs into the session but i can show you lots of examples where i can't put things into the session but have to send it via get/post. e.g. i have a multistep enrolment procedure where i generate a access-key for each form which is stored in the session _and_ in the webpage and only if they are both the same the form can be submitted. the submit-action script immediately generates a new access-key which prevents the form to be submitted twice and which allowes the next enrolment step to be performed. i also have samples where i need more than one var to be appended. we could of course add a real API to the trans-sid module that allows for url_rewriter_add('bal' , 'hallo'); url_rewriter_add('SID' , session_id()); that would be ok too. etc etc.. so you could run you session in hidden vars on the page - and the security nightmare starts again (ppls will use that to store stuff in hidden vars that _belong_ in the sesseon). ... and if people set empty root passwords their boxes will be vulnerable too ... on the other hand i think it might be useful to run the session using a cookie and still be able to add things (like like ? harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Addition to session-module (patch included)
sounds very useful, go ahead ;) would you mind extending it that session_set_userdata(array(thies = 1, harald = 2, knorp = 100)) would be possible ? harald. Thies C. Arntzen [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... hi, i have made a small patch to the session-module which allows the script to inject some user-defined data into the url_rewriter. why do i need this? - i want to be able to open a 2nd browserwindow - this window will use the same session as the 1st one - i need to be able to differentiate the two windows on the PHP side right now the session module can only store one cookie (or one info in trans-sid) my patch extends that to one user-defined variable so that: ?php session_start(); session_set_userdata(thies, 1); ? a href=test.phptest/a form input type=text input type=submit /form will generate: a href=test.php?MOFL=34b91e4e3d0974c3722c1298172dfb08thies=1test/a forminput type=hidden name=MOFL value=34b91e4e3d0974c3722c1298172dfb08 /input type=hidden name=thies value=1 / input type=text input type=submit /form as you can see thies = 1 will now be kept on the page. so to open a new window _and_ have a unique identifier for each openend window you would do something like: ?php session_start(); if (! isset($_SESSION[ 'mydata' ])) { $_SESSION[ 'mydata' ] = array(); } if (isset($_REQUEST[ 'newwindow' ])) { $windowid = time(); } elseif (isset($_REQUEST[ 'windowid' ])) { $windowid = $_REQUEST[ 'windowid' ]; } else { $windowid = 0; } session_set_userdata(windowid, (string) $windowid); if (! isset($_SESSION[ 'mydata' ][ $windowid ])) { $_SESSION[ 'mydata' ][ $windowid ] = 0; } echo clicks in this window . ++$_SESSION[ 'mydata' ][ $windowid ].br; ? a href=test.php?newwindow=1 target=0New Window/a testform: form input type=text input type=submit /form is it OK to commit? tc -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] Re: Addition to session-module (patch included)
On Thu, Apr 25, 2002 at 03:04:36PM +0200, Harald Radi wrote: sounds very useful, go ahead ;) would you mind extending it that session_set_userdata(array(thies = 1, harald = 2, knorp = 100)) would be possible ? nope - that would make the url_scanner slower. but you can always ancode as much data as you want into the one userdata var. can you explain me why this affects the url_scanner ? harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] FW: Request for Interfaces
ad. serializeable interface: we could define a serializer interface which exports tokenizers for the most common types and this could be passed to the serializeable callback function so each object/resource could serialize itself easily without knowing which type of serializer is used. this is getting a bit trickier when it comes to unserialization because the object would have to implement the serializer interface itself and the deserializer serializes itself into an object/resource using the object/resources serializer. this would be the most generic and simple way i can think of. it sounds a bit more complex than it is. e.g. if a resource serializes itself only as a couple of string tokens it also will only have to implement the string tokenizer function in its serializer interface for unserialization. so no unnecessary typing is needed. harald ps.: jani, look, no pgp ! Harald Radi [EMAIL PROTECTED] schrieb im Newsbeitrag news:001d01c1ebb6$04291120$a8eafea9@KNOFFL... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Following on from my RFC about an interface mechanism, what we really need is some brainstorming on what interfaces we need or would like to have in PHP. I'm aiming at PHP 5. sounds very interesting and covers with the ideas i proposed a few months ago about creating 'extension families' like db-apis, rpc-apis, xml-processing, payment-apis which have a common set of php-api functions. The following concepts have already been mentioned either by myself or others as being something we'd like to see in PHP: DOM XML nodes/documents --- XSLT processor. Image Handle -- PDF, SWF or some other extension with image embedding/processing. Socket / Network behaviours for streams. Memory Buffer accessors for streams (direct access to memory streams buffers, or access to file contents via mmap or some other mechanism). database handle rpc handle (i'm working on this at the moment and i'd like to adopt you interface stuff) serializeable (could be a stock interface which markes resources that can be safely serialized/unserialized) ... i had a few more ideas but i don't remember yet, i have to look up my mail archive are these interfaces only meant to be applied to resources or are they appliable to zend_class_entries as well ? this would be what i need. nice work. +1 harald -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 iQA/AwUBPMbsL61+myS9SSHxEQL3qgCgrlKBbX80xuZBYoFfOVZFBR34wyoAn0Rb B21nA79VbBATkcjVQ/zR02ZB =zGjl -END PGP SIGNATURE- -- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] Re: Request for Interfaces
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If the general consensus is that this interface layer should be in the ZE and should work for both resources and class entries, then I'd be happy to go for it. i'm more thinking from a ZE2 point of view. it doesn't have to be integrated into the ZE, you can provide a global object store that keeps references to interfaces (in particular iface structures that are references to datastructures that implement interfaces) and return handles for them which can be used as unique handle for the object. you only would have to provide a macro that gets the interface from a class additionally to that, that gets the interface from a resource. i don't think that it makes much sense to bother about the ZE1 object overloading api as there will be heavy changes and noone will implement it into existing stuff anyways (that's my personal opinion). harald Any comments Andi? maybe stas too ? harald. -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 iQA/AwUBPMdGT61+myS9SSHxEQLknQCg+W3+Nevu9JXsQ8LFR3eBtW0Re74AoPbR WklKcJRBE2D7ca+zNgojGnFD =DzmJ -END PGP SIGNATURE- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Sockets Extension Rework (API, etc...) VERY LONG
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 vs. while(($retval==socket_read($sock, $buf, $len)) 0) { // do something } if ($retval==-1) { print strerror(socket_last_error($sock)); } elseif ($retval==0) { $eof=1; print Eof has occured!!!; } what about while(socket_read($sock, $buf, $len)) { // do somthing } switch (socket_last_error($sock)) { case SOCKET_EOF: print eof; break; default: print strerror(socket_last_message($sock)); } harald. -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 iQA/AwUBPHeMRK1+myS9SSHxEQK7TgCcCP8Z4vdnVfFOhjhBX+y/WBQ196UAoKl1 BPYcQ7yUWFo/O0VeJwf/9lE6 =xYWI -END PGP SIGNATURE- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: Case sensitivity: Conclusion(?)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Good idea. E_DEBUG may be a good alternative to php_printf(). Heh. Fine tuning errors is probably a good idea. E_PEDANTIC? what i mentioned earlier and still want to see is an E_EXTENSION for errors that are not related to script errors but errors occuring in extensions. (like SQL errors, Java exceptions, SOAP timeouts :), ...). i would also appreciate if i could specify multiple log files with different error levels. harald -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 iQA/AwUBPGQe9a1+myS9SSHxEQKC/ACgpsu7zWQuBoFaGXX5Jy3gRArYAh4An2ok Gfq8Xx9mWgRwPr3inaIqNTlQ =2AzR -END PGP SIGNATURE- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] [Fwd: Re: [Zend Engine 2] Case sensitivity:Conclusion(?)]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 After careful consideration on the CS issue I must say I agree with John here. The _only_ case where I feel CS is a problem, is when dealing with other environments. But the price for changing this today is simply too high. It should have been done in PHP 3.0. We have other BC issues to soak our brains in. Actually i should agree with that, because it sounds reasonable. But there are a few things that hinder me. PHP isn't really case-insensitiv, as variable names are already case-sensitiv. Thus beginners are even more confused. Try to explain a beginner that functions are case-insensitive, variables are case-sensitive and constants can be either or. Isn't _that_ confusing ? Have you ever been looking to a beginners BASIC code? John may be right when he says, that it is easier to start with an case-insensitiv language. Case sensitiv languages may be a pain in the ass at first, but as soon as you understand things, your code will be ways cleaner. Natural languages (English, German, ... everything else ?) are case-sensitiv too. oR HavE yOu evEr seEn soMEonE wRITiNg lIKE thIs ? HOWEVER, I would like to suggest one compromise: storing class names (and maybe function names) exactly as they were spelled in the definition, and have get_class() etc. return that version instead of the lowercased one. This would at least make us able to expose interfaces with the intended case. -1 from me on case sensitivity in ZE2, +1 on storing pretty names would be an a acceptable solution, but would lead to further inconsistency, as one could write case-sensitiv extensions (i'd do :). harald. -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 iQA/AwUBPGJX+a1+myS9SSHxEQLSeQCgoelqujswN1pu62yq+/YDb0F6Y7YAoNcE AKSYHB14fFa8F9ohf0wxDTX4 =M455 -END PGP SIGNATURE- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] session extension
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, do you think of a possibility to add something like the zend_register_list_destructors() mechanism into your session extension to register session destructors for resources ? i'd like to implement an interface to store COM, CORBA and Java instances in the session. any clue ? harald -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 iQA/AwUBPA+w1a1+myS9SSHxEQKGbgCeLJ/oSjPTc2fwOv6sOkET43UDkREAoJdA 18cQy9yzaxTz5McGFl9YAoeI =e69y -END PGP SIGNATURE- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] RE: session extension
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 actually it isn't a resource but an object implementing __sleep and __wakeup. so technically there should be no problem. i'd only need a __destroy callback or sg. similar. harald -Original Message- From: Andrei Zmievski [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 7:03 PM To: Harald Radi Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: session extension On Thu, 06 Dec 2001, Harald Radi wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, do you think of a possibility to add something like the zend_register_list_destructors() mechanism into your session extension to register session destructors for resources ? i'd like to implement an interface to store COM, CORBA and Java instances in the session. any clue ? I think the bigger problem is that serialize() does not support resources at all. Sascha, can you think of any way we could possibly serialize the resources? -Andrei * Black holes are where God divided by zero. * -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 iQA/AwUBPA+zXq1+myS9SSHxEQIcnwCgs/nNdKDoNxd/pmTkXIOSCyZGrDkAmweg JOeJwYomGQhPPvLbwSMjq/7N =LUsQ -END PGP SIGNATURE- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] RE: session extension
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You mean, when the session is destroyed it should call __destroy_callback? exactly. Anyways, don't those objects store a resource handle in their properties? The magic functions __sleep and __wakeup serialize() checks if your class has a function with the magic name __sleep. If so, that function is being run prior to any serialization. It can clean up the object and is supposed to return an array with the names of all variables of that object that should be serialized. i intended to handle the resources by myself and return only an unique identifier to the session. so the session extension won't ever see a resource. do you see a problem so far ? harald -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 iQA/AwUBPA+2F61+myS9SSHxEQJhngCfV0A+50aYesZGE7vQA1eNqz4XmgUAnjPC Z7gRZnGnTs/gou61s8KY7iWQ =RQy+ -END PGP SIGNATURE- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DEV] RE: session extension
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 But how would you specify where this code is? Sessions are destroyed out of context. ok, a __destroy method implies that the method is bound to the object, but i was thinking of a static method that gets the session information for the object and can obtain the instance with this information and release it. __wakeup would be out of context too, so i have the same issue but this can be handled, thats not the problem. ie. a session is not necessarily destroyed by anything even remotely resembling the script that created them. And a whole lot of people don't even use PHP to destroy their sessions, they simply have an out of context cron job that goes through and cleans up old sessions while setting gc_probability to 0. this would indeed be a problem, but do you think this would be a reason not to implement functionality ? harald. -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 iQA/AwUBPA+5pq1+myS9SSHxEQIpuwCg8cKtE+F+LzcLogj1TthslWbudqYAoNNJ 32ogFMEcKfEghHnShrTL2Kjc =HEn9 -END PGP SIGNATURE- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: 4.1.0 Final RC
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 (a) RC a-la what we had until now. It will usually be in the range of weeks. i'd suggest a list where a branch is announced lets say a week before branching. i often have a few things lying around that should be in the next final but aren't commited yet. i suppose that lots of us (developers) would commit our stuff before branching if there would be such an announcement (yeah, i know .. mailinglists .. but i don't want to have to search). (b) Once we feel enough bugs have been fixed, a final RC is created. For this RC, only *critical show stoppers* are fixed. That is, even bug fixes are not MFH'd unless they're for critical bugs. If a critical show stopper is found, a fix should be merged to the RC branch, and a new Final RC should be released. So, for the developers amongst you - please do not MFH anything before discussing it on php-dev and convincing everyone it really fixes a critical bug. what about a qa-guys only cvs mirror for the 'final-rc' where the patches have to be submitted and discussed ? just be me being high on this Finnish Kossu :) cheers :) harald -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBO/q9N61+myS9SSHxEQJ82gCg4G27EvHHzm/Eo1TeTPl3t5VC7g4An1KV X24O/vSbB0Dyf0K7JR182Hom =BWUR -END PGP SIGNATURE- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: Debugging tool needed for Win32
such a tool was available at http://www.sysinternals.com , but i don't remember the name and i don't know if it is still there. harald Sebastian Bergmann [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... I'm searching for a Win32 tool that shows which process wants to open what files. I used to have a tool like this about two years ago. It was a freeware tool, but I don't remember the name :-( Any ideas/suggestions? I hope this is not too off-topic here, but since I need this for work on the Servlet SAPI it should be okay :-) Thanks, Sebastian -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] RE: RC3
commited to PHP_4_0_7 branch. could you recheck please. thanks, harald. -Original Message- From: Peter Dishman [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 11:16 AM To: 'Harald Radi' Subject: RE: RC3 Hi, I've just tried the latest CVS source (php4-20011005) and the boolean problem has been fixed but it seems that the other changes that have been made since Release Candidate 3 are now causing me problems. I'm using the ADODB php wrapper to talk to an Access database using ADO COM objects, which now doesn't work. At the moment I'm getting an error when attempting to open the connection as it claims it can't find the 'Provider'. I've checked in the ADODB source and it's doing the following: $dbc-Provider='MSDASQL'; // $dbc is a COM object of ADODB.Connection If I echo this line out immediately after, all I get is 'MSDA' the last few letters are missing! This then causes the error mentioned. Any ideas?? The project I'm working on also has connections to other COM objects that seem to be working fine, but they don't involve setting parameters in the object, only function calls. Cheers Pete Dishman Software Engineer Email: [EMAIL PROTECTED] Tel: +44 (0) 1442 242 242 Fax: +44 (0) 1442 242 123 - Telephonetics - Making Sound Business Sense - http://www.telephonetics.co.uk/ Disclaimer - Your attention is drawn to the disclaimer at http://www.telephonetics.co.uk/edisc.html which applies to this email - subjects covered are viruses, order placement / acceptance, confidentiality, security and liability. You may receive an email copy of the disclaimer by sending email to mailto:[EMAIL PROTECTED] -- -Original Message- From: Harald Radi [mailto:[EMAIL PROTECTED]] Sent: 04 October 2001 19:26 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: RC3 hi, This has been the case for all of the 407 release candidates but it worked fine in 406. strange. nearly everything changed in conversion.c, but the boolean conversion is always the same since the beginning. I reported this as a bug (No. 13433) but it's been ignored so far. It seems quite important though as it makes code that should work not work. i commited a patch to the cvs trunk. i've someone could test this i'll commit it to the 4.0.7 branch. i mainly changed the ZVAL_BOOL(pval, V_BOOL(vtval)) to if(V_BOOL(vtval)) {ZVAL_BOOL(pval, 1);} else {ZVAL_BOOL(pval, 0);} nothing that should concern anything else .. aren't there any predefined constants for true and false in the php/zend includes ? harald. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DEV] Bug #13433 Updated: Returning Booleans from COM is broken in 407
this is the one, has anyone tested the actual cvs version ? -Original Message- From: Derick Rethans [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 10:24 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] Bug #13433 Updated: Returning Booleans from COM is broken in 407 Hello, can you MFH this one too? Derick On 4 Oct 2001 [EMAIL PROTECTED] wrote: ID: 13433 Updated by: phanto Reported By: [EMAIL PROTECTED] Status: Open Bug Type: COM related Operating System: Windows NT 4 Server PHP Version: 4.0CVS-2001-09-25 New Comment: fixed in cvs Previous Comments: -- -- [2001-09-25 11:21:37] [EMAIL PROTECTED] In PHP 4.07 (RC1, RC2 and latest snapshot, standard windows build) returning a boolean from a COM object is broken. I reported this on PHP-QA a while ago but there was no response to it. That report was primarily to do with returning booleans from a database accessed via an ADO COM object. But now I've found it's true for all booleans. When you have a COM object returning a boolean, testing that boolean for 'trueness' fails. The following script: ?php $obj = new COM('com.object'); $arg = $obj-TestFunc();// Simple function that just returns TRUE var_dump($arg); if ($arg == TRUE) echo arg is trueBR; elseif ($arg == FALSE) echo arg is falseBR; else echo arg is something elseBR; if ($arg) echo BRarg is true, but not equal to trueBR; ? produces this output: bool(true) arg is something else arg is true, but not equal to true Basically, if you test for equality to 'true' it fails, but it's also not false. But if you just test directly on the value it works fine. I stepped through the source and it appears to be due to the way comparison of booleans is done. The COM object returns a boolean by creating a Variant of type BOOL and value -1. whereas PHP creates a boolean of type BOOL and value 1. The comparison then messes up due to this, I think. I've also tried this with PHP 4.06 and the problem doesn't occur in that version -- -- Edit this bug report at http://bugs.php.net/?id=13433edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] SRM: Site Resource Manager - www.vl-srm.net - -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity
It would mean we'd need to have nested classes. or limit namespaces to only contain classes: namespace::namespace::...::class::method(); is there a reason why a namespace should contain anything other than classes ? we have static functions and static members in classes, no need for them in namespaces too. we can still have classes and namespaces with the same name this way, because a namespace must always be followed by at least one '::' and there is no Foo::bar() class/namespace ambiguity because a namespace can't contain a function. harald. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity
We don't have static members. but we will in ze2 !? And we need namespaces for constants, also. why ? class Foo { final $BAR = blah; } namespace Foo; class Bar { static function bar() { echo $Foo::BAR; } } if (Foo::Bar::bar() === $Foo::BAR) { echo juhuuu; } else { echo damn; } you have classes, you have constants, you have functions, ... what more do you want ? harald. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity
I'm sorry, I haven't been following all of this - is 'final' a keyword that will be available (and enforced) in ze2? i don't either, but how else will you bind constants to a class / namespace ? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity
i don't either, but how else will you bind constants to a class / namespace ? echo Foo::CONSTANT; yes, but how do you define them ? if it's like this: namespace Foo; define(CONSTANT, 123); it won't be a problem either because then a class can't contain such a definition (yet) and there won't be any ambiguities too. harald. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: COM problem: help
hi crawley, please submit a bug report next time, i check them more recently than the mailinglist. 'it doesn't work' is also a poor description of the problem. looking to your interface definition i think the problem is, that you have to specify these values as VARIANT* because you can't pass them by reference otherwise. there is already a bugreport refering to this (i can't remember the id), search for it if you need more infos .. -harald. Crawley [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... I have an interface like this: interface ITest { HRESULT foo( [ out ] int *n ); HRESULT bar( [ out, string ] char *str ); }; I can call the first one from PH, but ONLY if I make the variable 'n' of type [ out, retval ]. My understanding is that I should be able to call it like this. $obj = new COM( mycomobject.test ); $n = new VARIANT( 0, VT_UI1 | VT_BYREF ); $obj-foo( $n ); but when I try this, it dosent work What am I missing ? asuming I'm missing something, can I do the same thing with a string. What I want to do is pass strings back from my COM object. I read that there is no support for VARIANT arrays, but I see you support VT_BSTR. So can I have strings as out params. If not I'm going to have to move to another scripting language ( for this project ). Aside from that - PHP is great, its like scripting C++ ... so the best of both worlds. Rich -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] RE: [Zend Engine 2] Re: Undefining user functions/classes at runtime?
something like the current oo api mechanism would be useful for userland too and would possible solve markus' problem too. if you call a member on an object there could be an __invoke() method that handles all calls of unknown functions. thus $obj-foo(bar); will end in $obj-__invoke(foo, bar); if the member foo() doesn't exist. -harald. -Original Message- From: Markus Fischer [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 23, 2001 8:24 PM To: Jeroen van Wolffelaar Cc: PHP Developers Mailing List; [EMAIL PROTECTED] Subject: [Zend Engine 2] Re: Undefining user functions/classes at runtime? On Sun, Sep 23, 2001 at 08:03:59PM +0200, Jeroen van Wolffelaar wrote : Is it currently possible to undefine user functions or classes at runtime? Although not a newbie ;) I'm unsure if its possible right now. No, you can't do that in PHP-userland (in the C code it can be done, see implementation of create_function). And IMHO that should remain so. If not, will this be support (ZE2) ? I hope not. Can you give an example where you think it will be useful? I'm currently writing an application which is only a dumb client stub (php-gtk) which receives its code via xml-rpc and executes it. The problem I have is that I can't refetch the same code again because I redefinition errors of all kind. - Markus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] RE: Fw: [php4win] PHP code not always processed
in my php408dev-log i've found one message: [12-Sep-2001 16:19:42] PHP Fatal error: fatal flex scanner internal error--end of buffer missed in c:\inetpub\www8082root\templats\menu-de.php on line 51 ... but i am not sure (and because i can not reproduce it - i do not think so), if this has something to do with the mentioned problem. this absolutely sounds like the cause for your problem. you should submit a bugreport for this. i'm resending this message to the php-dev list too and leave the whole thread appended so maybe someone can investigate this. -harald. im my apache log i've many entrys like [Fri Sep 14 11:16:16 2001] [error] [client 164.139.110.254] Filename is not valid: c:/inetpub/www8082root/images/logos/b_contac_ ,because the php script wants to load a language specific image b_contact_?php echo $sprache; ?.gif and if ?php is not parsed, it is clear that this file can not be found. in the meantime i've also tried to run 408dev as cgi. there this specifc problem does not exist, but after a while one php process gets stuck with approximatly 50% of cpu-usage and can not be terminated (no log-entry available). additionally the cgi-version (php.exe) is very slow ;o( after that (just 2 be sure) i've tried 406dev as cgi here the cgi is also very slow, but there are no other problems. i'm using php in combination with the apache webserver since php3 (that means for a long time), so that i do not think, that i have any problems with my config-files. an other point is, that the 408dev-cgi creates other pages that the 406dev-cgi but i think this is a problem with \n and \r\n and maybe the nl2br-function... if php408dev parses the php-pages correctly, i will check if this is a php-bug or simply a programming bug of mine. once again my environment: - win2k - php406dev - apache 1.3.19 hoping for a soon solution of this problem. best regards, andy - Original Message - From: Daniel Beulshausen [EMAIL PROTECTED] To: Andreas Stagl [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, September 14, 2001 10:37 AM Subject: Re: Fw: [php4win] PHP code not always processed At 09:38 14.09.2001 +0200, Andreas Stagl wrote: ups, i forgot to post to the list... here you are. is anything reported in the logs? daniel - Original Message - From: Andreas Stagl [EMAIL PROTECTED] To: Peter [EMAIL PROTECTED] Sent: Friday, September 14, 2001 9:36 AM Subject: Re: [php4win] PHP code not always processed good morning. no, i do not get any dumps. on my WAP (wamp without mysql *g*), when i use 407rc2 or 408dev as module (i've not tried the cgi), the simple script ?php phpinfo(); ? sometimes gives me the right output, sometimes the php-image can not be displayed and sometimes i receive te php-page unparsed. with all earlier versions which i've tested since php4 i've never had any big problem like that. for the moment i'm running 406dev which seems to be very stable on my evironment. any ideas? best regards, andy - Original Message - From: Peter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 14, 2001 12:38 AM Subject: Re: [php4win] PHP code not always processed To the people who have scripts half processed. Do you have fragments of PHP code inserted in HTML or one long PHP script? I have pages with one long PHP script and they make Apache terminate with a memory dump. I suspect for pages with little bits of PHP inserted in HTML, the PHP process for the page is terminating half way through and not processing PHP tags after that point. Do you get dumps or messages anywhere? Does PHP process all tags up to a point then none after that point? If so, what is the last tag processed and what is the first tag not processed? Peter 9/13/01 11:14:34 PM, Loïc [EMAIL PROTECTED] wrote: Hi List! I've faced the same kind of problem with 4.0.7-rc1 and 4.0.7-rc2. Testing the current cvs version of phpMyAdmin yesterday with the new rc2, I've seen something really stange: someytimes the first part of the script is parsed and not the rest! It's not related to the phpMyAdmin code (I'm one of the dev. and the same script works without any problem with php4.0.6). Indeed, while we always use full ?php tags, it seems php4.0.7 does not find all of them! Note: I've only tested php4.0.7-rc2 loaded as an Apache 1.3.20 module (not CGI) and my os is win98 SE. Regards, Loïc _ __ ___ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur
[PHP-DEV] RE: [Zend Engine 2] Re: [PHP-DEV] API Thoughts?
uups, i wanted to post this to the dev-list. -Original Message- From: Harald Radi [mailto:[EMAIL PROTECTED]] Sent: Monday, August 27, 2001 11:33 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [Zend Engine 2] Re: [PHP-DEV] API Thoughts? I'd prefer to code the OO wrapper in PHP -- it stops me from having to be aware of changes to the Zend OO model and writing code that works with both the functional interface and the OO interface (some form of automatic handling of this would be a very cool/useful feature for Zend, imho). writing an oo wrapper for your functional interface in c won't be a big deal and other extensions would benefit from it as they could return adt-types in a oo way which they can't with your attempt. they would have to create a PEAR wrapper around the existing resource they get, which looks quite messy. if the only reason against this is, that you don't wan't to deal with zends oo api, i'd write a lean wrapper for your functions as it is really no work. harald. ps.: this would be another reason for your first suggestion, as only tree_insert(), tree_remove(), .. need to be wrapped and not all those avl_*(), rb_*(), .. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: [PHP-QA] 4.0.7RC1 rolled
could you or someone else provide a windows binary of RC1. regards harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: profiler?
http://dd.cron.ru/dbg this is a debugger and profiler for win and linux harald. Brian Moore [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... hello, i'd like to begin work on a php profiler, as my employer needs one, and i couldn't find one. have i not looked hard enough or in the right place? my employer is committed to allowing me to open source the project. i would like it if i could begin a discussion with the people responsible for the front-end, compiler and runtime to ensure that the profiler can coexist and coevolve with php. in particular, i'd like it if releases of php did not break the profiler and vice-versa. does anyone here have ideas of how it should be done? thanks much in advance, b -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] AW: Re[3]: [Zend Engine 2] RFD: call backtrace
However, I think that even a simple dump will be a blessing as most PHP programmers must be quite used to print() style debugging now ;) debugger like the http://dd.cron.ru/dbg are able to show you the call stack and variable scopes even with actual php versions. so speed is more important than backtrace availability, even though backtraces would be nice if they would be catchable to create custom error logs. harald. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: how do i check if a field exists
where field_name actually exists but may not be used (null). the problem is that if it is not used then warnings are generated, even if i do;- if($myrow[field_name] != null){ $data = $myrow[field_name]; } is there any proposal to unify database extensions ? it seems that the mysql-extension doesn't set NULL values whereas the mssql-extension sets them to FALSE and the generic ODBC-extension sets them to 0. i haven't tried the others. there are a few other points that should be genrealized too here. harald. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] could someone apply this patch
should fix custom build steps in zend/ZendTS.dsp ZendTS.diff -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] added a few *_EXTERN_C() macro calls
any objections commiting this ? if not, please do so, i don't have karma for the zend repository. -harald. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Fw: added a few *_EXTERN_C() macro calls
uups. Harald Radi [EMAIL PROTECTED] schrieb im Newsbeitrag news:001d01c11f65$08fc8790$6500a8c0@Thinkphed... any objections commiting this ? if not, please do so, i don't have karma for the zend repository. -harald. extern_c.diff -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: TSRM compatibility note
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi zeev, is there a short explanation of this tsrm stuff somewhere ? i'd like to know which kind of functions should take use of the tsrm features. while reviewing your changes to the ext/com module i'm stumbled into a few inconsistencies (as far as i can follow). where on one hand you exaggerated in adding TSRM_* macros you left out very important functions on the other hand. maybe i'm wrong and i misunderstood the function of these macros, so a short HOWTO would be essentially. - -harald. Zeev Suraski [EMAIL PROTECTED] schrieb im Newsbeitrag news:5.1.0.14.2.20010730101740.050bb618@localhost... Just FYI - code working with the old-style TSRM should still go on working. It just wouldn't take advantage of the faster single fetch approach we switched to. We should probably change ext_skel to generate new-style fetches and macros, so that new extensions take advantage of the faster approach. Zeev -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 iQA/AwUBO2Wt5a1+myS9SSHxEQK2rACfYQ9FrNoszFW4pHL1y/iE3bRb1HUAn1Jy W4GO6+3JUAeUgYNFsb7LB8y+ =PdxQ -END PGP SIGNATURE- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] AW: fortunately it works now ..
Multithreaded: CoInitialize() is actually in basic_functions.c not in COM.c - interestingly. i.e. the code in COM.c is called, but is the second call to CoInitialize(). CoInitializeEx() would need to be callsed if we plan to be multi-threaded. wouldn't it be evident that CoInitialize[Ex]() and CoUninitialize() are called from the ext/com module constructor and destructor functions instead of the basic_functions ones ? which concurrency model should be chosen ? i would suggest to default to apartment-threaded and let users switch to multi-threaded by an ini setting. -harald. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: Send array from php to dll make in vb 6
I make a dll in Vb6 and it have a funcition that have a variable of type VARIANT like parameter. In the program php I call this dll and your method and send a array make in php. Occurs a error : Invoke Failed : Occured a exception, but if I pass a variable of type integer or string to other method of dll, it's OK. passing arrays is only possible in the cvs-version and is limited to single dimensional indexed only arrays. if you use the cvs version and still have problems please report a bug at bugs.php.net providing more information (code snippet, ..). --- to everyone here : how should associative arrays be handled ? any ideas how to pass them or should we simply drop all non-indexed entries as we do now ? harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: PHP 4.0 Bug Summary Report
[EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... PHP 4.0 Bug Database summary - http://bugs.php.net why are duplicates listed in the bug summary ? shouldn't they be treated as 'closed' ? -harald. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] cannot build cvs under win2k
c:\usr\local\include\sys\unistd.h(14) : warning C4273: '__p__environ' : inconsistent dll linkage. dllexport assumed. c:\usr\local\include\sys\unistd.h(16) : warning C4273: '_exit' : inconsistent dll linkage. dllexport assumed. c:\usr\local\include\sys\unistd.h(39) : error C2061: syntax error : identifier 'fork' c:\usr\local\include\sys\unistd.h(39) : error C2059: syntax error : ';' c:\usr\local\include\sys\unistd.h(39) : error C2059: syntax error : ')' c:\usr\local\include\sys\unistd.h(43) : error C2061: syntax error : identifier 'getegid' c:\usr\local\include\sys\unistd.h(43) : error C2059: syntax error : ';' c:\usr\local\include\sys\unistd.h(43) : error C2059: syntax error : ')' c:\usr\local\include\sys\unistd.h(44) : error C2061: syntax error : identifier 'geteuid' c:\usr\local\include\sys\unistd.h(44) : error C2059: syntax error : ';' c:\usr\local\include\sys\unistd.h(44) : error C2059: syntax error : ')' c:\usr\local\include\sys\unistd.h(45) : error C2061: syntax error : identifier 'getgid' c:\usr\local\include\sys\unistd.h(45) : error C2059: syntax error : ';' c:\usr\local\include\sys\unistd.h(45) : error C2059: syntax error : ')' c:\usr\local\include\sys\unistd.h(53) : error C2061: syntax error : identifier 'getpgid' c:\usr\local\include\sys\unistd.h(53) : error C2059: syntax error : ';' c:\usr\local\include\sys\unistd.h(53) : error C2059: syntax error : ')' c:\usr\local\include\sys\unistd.h(54) : error C2061: syntax error : identifier 'getpgrp' c:\usr\local\include\sys\unistd.h(54) : error C2059: syntax error : ';' c:\usr\local\include\sys\unistd.h(54) : error C2059: syntax error : ')' c:\usr\local\include\sys\unistd.h(55) : error C2061: syntax error : identifier 'getpid' c:\usr\local\include\sys\unistd.h(55) : error C2059: syntax error : ';' c:\usr\local\include\sys\unistd.h(55) : error C2059: syntax error : ')' c:\usr\local\include\sys\unistd.h(56) : error C2061: syntax error : identifier 'getppid' c:\usr\local\include\sys\unistd.h(56) : error C2059: syntax error : ';' c:\usr\local\include\sys\unistd.h(56) : error C2059: syntax error : ')' c:\usr\local\include\sys\unistd.h(57) : error C2061: syntax error : identifier 'getuid' c:\usr\local\include\sys\unistd.h(57) : error C2059: syntax error : ';' c:\usr\local\include\sys\unistd.h(57) : error C2059: syntax error : ')' c:\usr\local\include\sys\unistd.h(86) : error C2061: syntax error : identifier 'setsid' c:\usr\local\include\sys\unistd.h(86) : error C2059: syntax error : ';' c:\usr\local\include\sys\unistd.h(86) : error C2059: syntax error : ')' c:\usr\local\include\sys\unistd.h(89) : warning C4273: 'swab' : inconsistent dll linkage. dllexport assumed. c:\usr\local\include\sys\unistd.h(91) : error C2061: syntax error : identifier 'tcgetpgrp' c:\usr\local\include\sys\unistd.h(91) : error C2059: syntax error : ';' c:\usr\local\include\sys\unistd.h(91) : error C2059: syntax error : ')' c:\usr\local\include\sys\unistd.h(94) : warning C4273: 'unlink' : inconsistent dll linkage. dllexport assumed. c:\usr\local\include\sys\unistd.h(99) : error C2061: syntax error : identifier 'vfork' c:\usr\local\include\sys\unistd.h(99) : error C2059: syntax error : ';' c:\usr\local\include\sys\unistd.h(99) : error C2059: syntax error : ')' c:\usr\local\include\sys\unistd.h(105) : error C2061: syntax error : identifier '_fork' c:\usr\local\include\sys\unistd.h(105) : error C2059: syntax error : ';' c:\usr\local\include\sys\unistd.h(105) : error C2059: syntax error : ')' c:\usr\local\include\sys\unistd.h(106) : error C2061: syntax error : identifier '_getpid' c:\usr\local\include\sys\unistd.h(106) : error C2059: syntax error : ';' c:\usr\local\include\sys\unistd.h(106) : error C2059: syntax error : ')' c:\usr\local\include\sys\unistd.h(111) : warning C4273: '_unlink' : inconsistent dll linkage. dllexport assumed. c:\programme\microsoft visual studio\vc98\include\io.h(154) : error C2375: '_close' : redefinition; different linkage c:\usr\local\include\sys\unistd.h(104) : see declaration of '_close' c:\programme\microsoft visual studio\vc98\include\io.h(168) : error C2375: '_lseek' : redefinition; different linkage c:\usr\local\include\sys\unistd.h(108) : see declaration of '_lseek' c:\programme\microsoft visual studio\vc98\include\io.h(174) : error C2375: '_read' : redefinition; different linkage c:\usr\local\include\sys\unistd.h(109) : see declaration of '_read' c:\programme\microsoft visual studio\vc98\include\io.h(181) : warning C4273: '_unlink' : inconsistent dll linkage. dllexport assumed. c:\programme\microsoft visual studio\vc98\include\io.h(182) : error C2375: '_write' : redefinition; different linkage c:\usr\local\include\sys\unistd.h(112) : see declaration of '_write' c:\programme\microsoft visual studio\vc98\include\io.h(225) : error C2375: 'access' : redefinition; different linkage c:\usr\local\include\sys\unistd.h(18) : see declaration of 'access' c:\programme\microsoft visual studio\vc98\include\io.h(226) :
Re: [PHP-DEV] Latest commit -- depreciation of call_user_method()
new way: call_user_func(array($obj, method), method, args, go, here); ---^ isn't 'pass by reference' deprecated too ? harald. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: AW: [PHP-DEV] arrays
Any XML-RPC implementation would benefit from seeing easily whether a value is a continous pure numeric array, associative array or a mix. It should be a trivial fix, and the performance difference is negligible. - Stig [Zeev Suraski [EMAIL PROTECTED]] Why do you need it? Nobody ever needed it until now. .. it seems noone dared to complain until now .. :) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: AW: AW: [PHP-DEV] arrays
then it wasn't intendet to be an indexed array only and we could treat it as associative for the rest of the time. maybe we could add a userfunction array_remove_assoc() which would remove all associative keys and resets the flag. but i wouldn't mind this special case. harald. -Ursprüngliche Nachricht- Von: Zeev Suraski [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 15. Mai 2001 01:52 An: Harald Radi Cc: Stig Sæther Bakken; Andrei Zmievski; [EMAIL PROTECTED] Betreff: Re: AW: AW: [PHP-DEV] arrays Ok, if we humor ourselves with this feature... What kind of behavior would you expect if a key gets deleted, and there are no longer associative members in the array? Zeev At 02:42 15/5/2001, Harald Radi wrote: Any XML-RPC implementation would benefit from seeing easily whether a value is a continous pure numeric array, associative array or a mix. It should be a trivial fix, and the performance difference is negligible. - Stig [Zeev Suraski [EMAIL PROTECTED]] Why do you need it? Nobody ever needed it until now. .. it seems noone dared to complain until now .. :) -- Zeev Suraski [EMAIL PROTECTED] CTO co-founder, Zend Technologies Ltd. http://www.zend.com/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: AW: AW: [PHP-DEV] arrays
instead of just setting a flag you could implement a assoc-entry counter (imo performance is the same) that you could decrement if an associative key gets deleted. harald. -Ursprüngliche Nachricht- Von: Zeev Suraski [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 15. Mai 2001 01:52 An: Harald Radi Cc: Stig Sæther Bakken; Andrei Zmievski; [EMAIL PROTECTED] Betreff: Re: AW: AW: [PHP-DEV] arrays Ok, if we humor ourselves with this feature... What kind of behavior would you expect if a key gets deleted, and there are no longer associative members in the array? Zeev At 02:42 15/5/2001, Harald Radi wrote: Any XML-RPC implementation would benefit from seeing easily whether a value is a continous pure numeric array, associative array or a mix. It should be a trivial fix, and the performance difference is negligible. - Stig [Zeev Suraski [EMAIL PROTECTED]] Why do you need it? Nobody ever needed it until now. .. it seems noone dared to complain until now .. :) -- Zeev Suraski [EMAIL PROTECTED] CTO co-founder, Zend Technologies Ltd. http://www.zend.com/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: AW: [PHP-DEV] 4.1 Declaration Case Persistance
Sterling Hughes [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... On Thu, 10 May 2001, Jani Taskinen wrote: On Wed, 9 May 2001, Sterling Hughes wrote: On Thu, 10 May 2001, Jani Taskinen wrote: This is just because some developers don't like to follow the guidelines. As, I quote, it woulnd't be fun anymore or you can't force anyone. Hrrmmm.. Which guidelines would those be? And no, you can't force anyone, This one.. (from CODING_STANDARDS): 8--- Naming Conventions -- [1] Function names for user-level functions should be enclosed with in the PHP_FUNCTION() macro. They should be in lowercase, with words 8--- yea, but i wasn't talking about functions, i was talking about classes (in particular the com, dotnet and variant class). i couldn't find a guidline how to name classes, attributes or methods. there is even no guidline in the PEAR CODING_STANDARDS file, but they use a more c++ like convention: CLASS-lowerUpperUpper(); should this be adopted to have an uniform convetion ? any other ideas ? and at least, how should they be documented in the php documentation (i posted a mail 2 days ago, but without response) ? afaik there is only a function/function tag, but no class/class, member/member, method/method, constructor/constructor, etc. tags. any suggestions ? And yes, you can force anyone. If they don't follow the guidelines set, their CVS access can as easily be taken from them as it was given.. This is same as if someone intentionally breaks some parts of the code. i didn't want to blame someone, the reason i asked was, that the com extension was originaly done by zeev, so i thought there was a reason for the naming. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] documentation
hi, how should classes be documented ? since they are not really a function they only have a return value together with new and function/function seems to be illogical. is there also a way to document members and attributes ? is there a list of tags that are available ? -harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: [PHP-DEV] Zend API changes
-Ursprüngliche Nachricht- Von: Zeev Suraski [mailto:[EMAIL PROTECTED]] Gesendet: Sonntag, 06. Mai 2001 10:49 An: Stig Sæther Bakken Cc: Hartmut Holzgraefe; [EMAIL PROTECTED] Betreff: Re: [PHP-DEV] Zend API changes At 11:41 6/5/2001, Stig Sæther Bakken wrote: You're not wrong; It's been done and published (http://www.zend.com/apidoc/), and is the base for additional work that I invited people to improve on. Hey, are the sources for this manual available somewhere? CVS maybe? Yep, sure thing; cvs.zend.com, co ZendAPI; Released under OPL, and written in the same formats everyone in here's used to work with :) cvs server: cannot find module `ZendAPI' - ignored cvs [checkout aborted]: cannot expand modules user: cvsread is there a downloadable version too ? chm or pdf would be really nice. harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] AW: AW: [PHP-CVS] cvs: php4 /ext/dotnet dotnet.cpp
hi, here is a patched version of php4.0.5 with the fixed com extension. http://celery.nme.at/php-4.0.5.zip regards harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] api question
when i register a destructor with zend_register_list_destructors_ex(), why is the registered function only called at the end of the script and never during processing when i do something like unset($my_obj); or $my_obj=null;. isn't it supposed to be called during execution ? harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] parser / compiler bug ?
hi zeev, hope you or someone else could give me a hint. occasionally php produces no output. i don't get any assertions, runtime errors or log entries, there's simply nothing. the webserver tells me that the cgi executeable produced no output. i have this problem mainly with larger scripts that depend on include files and com-objects so it's difficult for me figure out why it's happening. but it rarely happens with simple scripts too. since nothing of the script is executed i would say that php quits somewhere inside the parser or compiler. are there any possibilities to log parser and compiler activities ? maybe this would give a clue. harald. resistance is futile - nme.at -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] a debugger for php
http://dd.cron.ru/dbg/ great ! harald. resistance is futile - nme.at -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] can't build latest cvs
Linking... Creating library ..\Release_TS_inline/php4ts.lib and object ..\Release_TS_inline/php4ts.exp php_mysql.obj : error LNK2001: unresolved external symbol _add_assoc_null php_mysql.obj : error LNK2001: unresolved external symbol _add_index_null php_pcre.obj : error LNK2001: unresolved external symbol _zend_is_callable scanf.obj : error LNK2001: unresolved external symbol _add_next_index_null ..\Release_TS_inline\php4ts.dll : fatal error LNK1120: 4 unresolved externals Error executing link.exe. harald. resistance is futile - nme.at -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: [PHP-DEV] variant?
uups sorry, thought i replied to sebastian harald. -Ursprungliche Nachricht- Von: Harald Radi [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 01. Februar 2001 17:38 An: php-dev mailinglist Betreff: AW: [PHP-DEV] variant? hallo, ist im grunde ein mapping des C / CPP variant datentyps nach php. wenn man daten an ein com-objekt als referenz ubergeben will muss man sie in ein variant-objekt kapseln, ja und dazu is das ding da, gibts nur unter win32. harald. -Ursprungliche Nachricht- Von: Sebastian Bergmann [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 01. Februar 2001 17:25 An: php-dev mailinglist Betreff: [PHP-DEV] variant? I just built the latest CVS on Win32, but I'm getting the following in the phpinfo() output H2 align="center" A NAME="module_variant"variant/A /H2 TABLE BORDER=0 CELLPADDING=3 CELLSPACING=1 WIDTH=600 BGCOLOR="#00" ALIGN="CENTER" TR VALIGN="bottom" bgcolor="#CC" THDirective/TH THLocal Value/TH THMaster Value/TH /TR /TABLE What is variant? -- sebastian bergmann e-mail : [EMAIL PROTECTED] homepage : http://www.sebastian-bergmann.de make a gift : http://wishlist.sebastian-bergmann.de measure the usability of your web application - http://phpOpenTracker.de -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: [PHP-DEV] variant?
hallo, ist im grunde ein mapping des C / CPP variant datentyps nach php. wenn man daten an ein com-objekt als referenz ubergeben will muss man sie in ein variant-objekt kapseln, ja und dazu is das ding da, gibts nur unter win32. harald. -Ursprungliche Nachricht- Von: Sebastian Bergmann [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 01. Februar 2001 17:25 An: php-dev mailinglist Betreff: [PHP-DEV] variant? I just built the latest CVS on Win32, but I'm getting the following in the phpinfo() output H2 align="center" A NAME="module_variant"variant/A /H2 TABLE BORDER=0 CELLPADDING=3 CELLSPACING=1 WIDTH=600 BGCOLOR="#00" ALIGN="CENTER" TR VALIGN="bottom" bgcolor="#CC" THDirective/TH THLocal Value/TH THMaster Value/TH /TR /TABLE What is variant? -- sebastian bergmann e-mail : [EMAIL PROTECTED] homepage : http://www.sebastian-bergmann.de make a gift : http://wishlist.sebastian-bergmann.de measure the usability of your web application - http://phpOpenTracker.de -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: [PHP-DEV] Re: PHP 4.0 Bug #8975 Updated: modulo (%) sets the ritht operator to the result
I did'n know that '=' operator has higher priority than '%'. Is it assumed ? Is the example correct ? the % thing is done before the assignment, otherwise $i would be divided by true and the % would always return 0. harald -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: [PHP-DEV] database abstraction layers [from: MySQL feature/bug]
there exists a db abstraction layer in the PEAR (pear.php.net) harald. -Ursprngliche Nachricht- Von: Marc Boeren [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 31. Jnner 2001 16:57 An: '[EMAIL PROTECTED]' Cc: 'Mark J. Hershenson' Betreff: [PHP-DEV] database abstraction layers [from: MySQL feature/bug] I have been crafting my own database abstraction layer, and in doing so create an array of the results of a query. Is this an db abstraction layer written in php (script), or written as a module for php (C)? I was thinking of writing an (open source) db-abstraction module (that uses existing db-modules, of course), which could then be used from php-script as well as from other modules that need db-functionality without committing to a specific database. Or, does such a module exist already and should I concentrate on using and/or co-developing that one? Thanks, Marc. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] com support win32
hi, now i've more or less fixed all open com-related bugs. i've written an additional VARIANT module that represents the C VARIANT Datatype. now you can pass this to the com-method and all works fine ... short example: ?php $cpx = new COM("TACPXSrv.CPXSrv"); // create com object $var = new VARIANT(); // first constructor: creats a VT_EMPTY variant $var = new VARIANT("foo"); // second constructor: tries to determine the correct datatype $var = new VARIANT("bar", "VT_BSTR"); // third constructor: gives you full control echo get_class($var); // VARIANT echo $var-value; // -value delivers the actual content of the VARIANT, ro $var-bstrVal = "abc"; // all the VARIANT attributes are supportet, wo $var-pbstrVal = "bcd"; $var-lVal = 26; echo $var-value; $cpx-CPXExecute(0x0301, 2, 5, "", $var); echo $var-value; // shows the result from the function call above ? are there any objections ? whom should i send the sources ? how should i document the new functionalities ? harald. resistance is futile - nme.at -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] zval question
hi, i'm tricking around with the COM extension to fix the open bugs (and of course to satisfy my requirements). there are - if (pval_arg-is_ref == 0) { ... } else { ... } - constructs in the code, but how could this parameter be influenced in the php script ? i try to fix the 'pass by reference' problem in the com extension, but either i have to specify the behavior in the php script or i have to query the typelib if one of the parameters is expected by reference. the second way seems to be very time-consuming and is not always possible (some COM objects don't export a typelib). any ideas ? i'm stuck at the moment (since the second way is IMO not practicable). another question to the core team: is it a problem to implement the COM extension as a cpp file, since the c com-interface is not well documented and doesn't support everything ? since this is only a win32 module it shouldn't be a problem, any objections ? harald. resistance is futile - nme.at -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: [PHP-DEV] PHP 4.0 Bug #8744 Updated: call to header() causes CGI error
hi, now i have a very short script that reproduces the error: ?php $count = 0; session_start(); $count++; session_register("count"); sleep(1); // flood protection if(TRUE) { header("Location: stress.php?".SID); } ? i don't think that the session stuff is required, the number of requests until the error occured is very different, so i don't think it has something to do with it. VERY IMPORTANT: this only happened to me when header() was called inside _OR_ after a structural block (if, while, function, switch, ..). I'm using the latest cvs-version on Win2k / IIS 5. I hope this is a valuable hint. harald. -Ursprngliche Nachricht----- Von: Harald Radi [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 17. Jnner 2001 19:13 An: [EMAIL PROTECTED]; [EMAIL PROTECTED] Betreff: AW: [PHP-DEV] PHP 4.0 Bug #8744 Updated: call to header() causes CGI error hi, a few comments to this, my (afaik already closed) and the #8571 bug reports: in fact the provided information about this bug is insufficient, but it's definitly a bug. since the error appears in irregular intervals with the same script it's hard to find any dependencies. i will try to find the shortest script that generates this error. a few hints: when i use a https connection the error occours more often. i don't get the error when i work local (on the webserver), but i get it when i access the same machine remote. it would be helpful if i could tell php to be more verbose. (i.e. log internal function calls to see where the execution stops) if someone could tell me how to debug php on a win32 platform i would give my best to localize this bug. harald. resistance is futile - nme.at -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 17. Jnner 2001 00:31 An: [EMAIL PROTECTED] Betreff: [PHP-DEV] PHP 4.0 Bug #8744 Updated: call to header() causes CGI error ID: 8744 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: IIS related Description: call to header() causes CGI error In case you missed my second message: Here are two typical lines from the IIS error log: the first is a successful page load (code 200) and the second is the CGI error after the redirect (502) Note that in the IIS log format it is normal for a space to separate the URL and the Querystring. The last column in the log is the referrer URL. 2001-01-16 17:20:30 192.168.1.29 - GET /success/ProbRev.php3 EmpID=5New=Y 200 0 378 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+98;+Win+9x+4.90) http://192.168.1.30/success/InterimRevSelect.php3?EmpID=5 2001-01-16 17:20:30 192.168.1.29 - GET /success/ProbRev.php3 EmpID=5ProbRevID=12 502 0 374 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+98;+Win+9x+4.90) http://192.168.1.30/success/InterimRevSelect.php3?EmpID=5 Previous Comments: -- - [2001-01-16 18:29:28] [EMAIL PROTECTED] A few more things: the problem is not easily reproducible. Also, if I change all of the database calls to go to mySQL (which I have installed on Windows 2000) instead of SQL Server 2000 (which is the database system I was using, also installed on the same machine), I do NOT get the CGI errors. However, in both instances, the databases do get updated or otherwise manipulated successfully; it's just the redirect that fails when using SQL Server. Hope this helps. -- - [2001-01-16 14:12:01] [EMAIL PROTECTED] Can you tell us what is in the logs of IIS? -- - [2001-01-16 14:07:45] [EMAIL PROTECTED] Our situation is similar to that in bug report 8571, particularly situations 1 and 2. After adding, updating or deleting a record to a MSSQL database, the user is referred to this function (stored in file which is included in each page): function pageRedirect($inURL) { header("Location: $inURL"); exit; } $inURL is never exactly the same as the current URL - either you are redirected to a completely different file name, or to the same file name with a different query string appended. The record modification part always completes successfully in MSSQL, and the header() function sends the user to the new URL, but this error occurs: [start] CGI ERROR CGI application misbehaved by not returning a complete set of headers. The headers that it did return are: [end] ... and any code in the page that the user has been redirected to is NOT executed. If the user clicks refresh, it does and all is well. This is a PHP web application being ported from a Linux/mySQL environment, where it works, so it appears to be an IIS-specific issue. Than
AW: [PHP-DEV] PHP 4.0 Bug #8816: cross subscript object variable access
hi, we had the same problem. the solution is to instanciate the providerclass with $provider = new ProviderClass(); another solution would be to implement a static function in your subclass that acts as a classfactory: function providerFactory($ProviderInstance) { $ProviderInstance-FOO = new SubClass(); } hope that helps. harald. -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 20. Jnner 2001 04:16 An: [EMAIL PROTECTED] Betreff: [PHP-DEV] PHP 4.0 Bug #8816: cross subscript object variable access From: [EMAIL PROTECTED] Operating system: linux PHP version: 4.0.4 PHP Bug Type: Class/Object related Bug description: cross subscript object variable access I today found out a strange thing about the PHP4 object/variable handling that I can not understand. My main script first clones a provider class and stores the new object into $MAINPROV; Then it includes two files that give back two elements of the page. My provider class has some subclasses. These shall be loaded on demand with functions like getFooProvider(). Theese functions test via preis_object($this-FOO)/pre if the class is already loaded. If not it includes the file containing the class definition and spawns pre$this-FOO = new foo($this)/pre. Now listen to this: If I use the load-function in the main script all works fine. But if the class is loaded from one of the subclasses (into the main provider class object that is a variable in the main script) it cannot be accessed in the other subscript, the second element. This causes the foo-class-file to be reloaded and throws out an error message because the class is already defined. If anybody can help, it would be very very sad if I had to workaround pre-loading every subclass that can be used on this page, because I wanted to make it dynamically load the classes. Thanks! -- Edit Bug report at: http://bugs.php.net/?id=8816edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: [PHP-DEV] same functions in modules
ie the php_com and php_dotnet modules use both function for converting zval - unicode string and vice versa, i've found equal cases in other modules too but i would have to look again. i think this is a special case because the dotnet and the com module are very identical. but anyway i think it should be discussed. harald -Ursprngliche Nachricht- Von: Sean R. Bright [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 20. Jnner 2001 18:27 An: 'Harald Radi'; 'PHP Developer List' Betreff: RE: [PHP-DEV] same functions in modules Could you provide some examples? -Original Message- From: Harald Radi [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 20, 2001 9:52 AM To: PHP Developer List Subject: [PHP-DEV] same functions in modules hi, there are a few modules using the same c-functions and they are reimplemented in each module.c file in the ext/[module] directory. won't it be better to move these functions into shared include files somewhere in the ext/ directory ? harald. resistance is futile - nme.at -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
AW: [PHP-DEV] PHP 4.0 Bug #8767: user name prepended to table names in query
hi i've never worked with informix, but afaik from other 'big' DBs you have to prepend the owner of the requested object (e.g. the table) or create an alias to the object for every user that wants to access it. because if now owner is specified the client assumes that the actual user owns the requestet object and prepends it. try something like select * from [ownerofthetable].action -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 17. Jnner 2001 21:42 An: [EMAIL PROTECTED] Betreff: [PHP-DEV] PHP 4.0 Bug #8767: user name prepended to table names in query From: [EMAIL PROTECTED] Operating system: RH 6.2 PHP version: 4.0.3pl1 PHP Bug Type: Informix related Bug description: user name prepended to table names in query I folks, I have searched many sources for a few days looking for an answer to no avail. I have what seems to be a properly configured setup of Redhat 6.2, PHP 4.0.3pl1, Informix Dyn Server 7.30. At this point I am trying to build a simple database browser. Using ifx_{connect, query, close} I can query a database in the 'informix.systables' and get results, using a particular db@server, uname, passwd in the ifx_connect call. However, using the same parameters a simple query, such as: select * from action always fails with code (E [SQLSTATE=42 000 SQLCODE=-206]) string: The specified table (uname.action) is not in the database If I use different db/server or uname or passwds, I get the expected error messages regarding the error. It seems that the user name (2nd parameter in ifx_connect call) is being prepended to the table request for some reason??? Running the same query from "dbaccess" works. I have not seen this error mentioned anywhere in user groups, web sites, etc. Thanks for any help, dave -- Edit Bug report at: http://bugs.php.net/?id=8767edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]