[PHP-DEV] CVS Account Request: max

2002-12-29 Thread Max W. Blackmer, Jr.
Assist in the development of PEAR possably providing QA to PEAR group and maintainers. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] from one hash to another, in an extension

2002-10-24 Thread Tim Daly, Jr.
Andrei Zmievski <[EMAIL PROTECTED]> writes: > On Wed, 23 Oct 2002, Tim Daly, Jr. wrote: > > > You don't need to SEPARATE_ZVAL() in this case. > > > > I don't need to, or I need not to? > > Don't use SEPARATE_ZVAL() when

Re: [PHP-DEV] from one hash to another, in an extension

2002-10-23 Thread Tim Daly, Jr.
Andrei Zmievski <[EMAIL PROTECTED]> writes: > On Wed, 23 Oct 2002, Tim Daly, Jr. wrote: ... > > zend_hash_find(hash1, "key", strlen("key")+1, (void **)&val); > > SEPARATE_ZVAL(val); > > zval_add_ref(val); > > zend_hash_update(hash2, &quo

[PHP-DEV] from one hash to another, in an extension

2002-10-23 Thread Tim Daly, Jr.
I'm trying to figure out the right way to take an entry from one hash table, and put it in another, in C. This is what I first tried: // naive attempt at // $hash2["key"] = $hash1["key"]; zval **val; zend_hash_find(hash1, "key", strlen("key")+1, (void **)&val); SEPARATE_ZVAL(val); zval_add_ref

Re: [PHP-DEV] trying to understand zvals

2002-10-18 Thread Tim Daly, Jr.
Stanislav Malyshev <[EMAIL PROTECTED]> writes: *snip* > TDJ>> that did such a reference assignment: > TDJ>> > TDJ>> $foo = "zonk"; > TDJ>> $bar = "baz"; > TDJ>> > TDJ>> ref_assign($bar, $foo); // $bar =& $foo; > TDJ>> > TDJ>> what has to happen in ref_assign? > > That'

[PHP-DEV] trying to understand zvals

2002-10-18 Thread Tim Daly, Jr.
I'm trying to do some extension programming, and I'm pretty confused by the whole zval thing. In particular, references are a little mysterious. If I have $foo = "zonk"; $bar =& $foo; in PHP, what actually happens? Specifically, if I wanted a function that did such a reference

Re: [PHP-DEV] trying to understand zvals

2002-10-18 Thread Tim Daly, Jr.
Stanislav Malyshev <[EMAIL PROTECTED]> writes: > OK, looking again on the matter in depth, it seems to me that you cannot > do it from C function either, due to the way in which parameters are > passed in the engine. Could you go into a little more depth on the problem, just so I understand?

Re: [PHP-DEV] trying to understand zvals

2002-10-18 Thread Tim Daly, Jr.
Stanislav Malyshev <[EMAIL PROTECTED]> writes: > Ah. Then you need to accept the first parameter by reference (this is > defined in ZEND_FE definition, put first_arg_force_ref as second > parameter). Then you get parameters the usual way (zend_get_parameters_ex, > etc.) and have to zval ** va

Re: [PHP-DEV] trying to understand zvals

2002-10-18 Thread Tim Daly, Jr.
Brad LaFountain <[EMAIL PROTECTED]> writes: > PHP_FUNCTION(ref_assign) > { > zval *bar, *foo; > > if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz", &bar, &foo) == > FAILURE) { > return; > } > > ZVAL_ADDREF(foo); > *bar = *foo; > bar->i

Re: [PHP-DEV] default properties (in c)

2002-10-09 Thread Tim Daly, Jr.
Brad LaFountain <[EMAIL PROTECTED]> writes: > Ok, > > I don't think default_properties is what you are looking for. > default_properties store the information about defined variables and their > default value. Like this: > class MyClass { > var $test = "mytest"; > } > at compile time MyClass cl

Re: [PHP-DEV] default properties (in c)

2002-10-08 Thread Tim Daly, Jr.
Brad LaFountain <[EMAIL PROTECTED]> writes: > What engine are you working with 1 or 2? > -brad I imagine PHP3 == engine 1, and PHP4 == engine 2? I'm using PHP version 4.2.3. -Tim -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] default properties (in c)

2002-10-08 Thread Tim Daly, Jr.
Hi everybody. I'm working on an extension that creates classes, and I want to add class variables to the classes. It looks like, internally, class variables are stored in the zend_class_entry.default_properties hash. Manipulating this hash has the effect desired, however I seem to have misunde

Re: [PHP-DEV] Crash in Apache2Filter

2002-04-08 Thread William A. Rowe, Jr.
At 01:32 AM 4/9/2002, Cliff Woolley wrote: >On Tue, 9 Apr 2002, Sebastian Bergmann wrote: > > > >> Win32, Apache 2.0.36-dev, PHP 4.3.0-dev (both current CVS) > > > > > > The crash seems to be gone now. > > > > This is odd. Compiled with MSVS.Net it does not crash, compiled with > > MSVC 6 i

[PHP-DEV] CVS Account Request: eebel

2001-12-18 Thread JR Ebel
research -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP-DEV] Bug #10175 Updated: date() reporting wrong timezone

2001-06-26 Thread jr
ID: 10175 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: Date/time related Operating system: solaris 2.7 PHP Version: 4.0.4pl1 Description: date() reporting wrong timezone we have since switched from solaris to linux and it works fine. Previous Comments: --

[PHP-DEV] Bug #10634 Updated: #2293 related: to many Slashes s.t.

2001-06-18 Thread jr
ID: 10634 User Update by: [EMAIL PROTECTED] Old-Status: Closed Status: Open Bug Type: Scripting Engine problem Operating system: Linux 2.4.2 PHP Version: 4.0.4pl1 Description: #2293 related: to many Slashes s.t. No, magic quotes are turned off, it's not that simple. Previous Comments: --

[PHP-DEV] Bug #10634: #2293 related: to many Slashes s.t.

2001-05-03 Thread jr
From: [EMAIL PROTECTED] Operating system: Linux 2.4.2 PHP version: 4.0.4pl1 PHP Bug Type: Scripting Engine problem Bug description: #2293 related: to many Slashes s.t. Hi, sometimes strings from a DB or a textfile are added with backslashes all over one page. if you reload

[PHP-DEV] PHP 4.0 Bug #10175: date() reporting wrong timezone

2001-04-04 Thread jr
From: [EMAIL PROTECTED] Operating system: solaris 2.7 PHP version: 4.0.4pl1 PHP Bug Type: Scripting Engine problem Bug description: date() reporting wrong timezone doing a "date" from the console shows the timezone as PDT. date("I") returns 1, but date("T") reports PST.

[PHP-DEV] PHP 4.0 Bug #9975: perse error causes core dump

2001-03-25 Thread jr
From: [EMAIL PROTECTED] Operating system: solaris 2.7 PHP version: 4.0.4pl1 PHP Bug Type: Reproduceable crash Bug description: perse error causes core dump the following code will cause "php -l" to core dump: strtoupper(; yes, there should be a closing parenthesis. but i

Re: [PHP-DEV] SSL

2001-02-04 Thread James H. Cloos Jr.
have. (As would -- perhaps optionally -- a more complete HTTP client implementation for fopen().) -JimC -- James H. Cloos, Jr. <http://jhcloos.com/public_key> 1024D/ED7DAEA6 <[EMAIL PROTECTED]> E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 -- PHP Development Maili

[PHP-DEV] PHP 4.0 Bug #8954: compiling with sybase-ct fails

2001-01-27 Thread jr
From: [EMAIL PROTECTED] Operating system: solaris 2.7 PHP version: 4.0.4pl1 PHP Bug Type: Compile Failure Bug description: compiling with sybase-ct fails doing a make fails with the following output: ld: fatal: library -lsybtcl: not found ld: fatal: library -lcomn: not foun