Ken Spencer | 1 Aug 2003 02:44
Picon

[PHP-DEV] Making a variable global question


I am trying to make a function for my extension that makes a predefined 
variable global 

I have tried something along the lines of:

 if(zend_hash_find(&EG(symbol_table), var, strlen(var)+1,  (void **)  
   &vars_data)!=FAILURE)
{
  ZEND_SET_SYMBOL(EG(active_symbol_table), var,   *vars_data);
}

but it seg faults upon second execution. 

Can someone reccomend a more successful method of accomplishing this? 

Chhers,

Ken

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reza Iqbal | 1 Aug 2003 10:58
Picon
Favicon

[PHP-DEV] CVS Account Request: rezaiqbal

Translate PHP Manual to Bahasa
Indonesia

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Ard Biesheuvel | 1 Aug 2003 11:41
Picon

[PHP-DEV] [ext/interbase] Maintainer ?

Hello,

Is the InterBase extension actively being maintained by anyone ?

I've been looking into the source in order to adapt the extension to
support multi-database transactions. This requires some changes
to the way the resources are currently defined.

I would like to make a suggestion about how to change this, so that
transactions over multiple connections can be supported as well.

Ard Biesheuvel

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Phil Driscoll | 1 Aug 2003 11:46
Picon
Gravatar

Re: [PHP-DEV] upload compromises

If ISPs want to prevent stupid scripts copying uploaded files under 
document_root they can set ownership and permissions on document_root so that 
the web server doesn't have permission to write files there. That should fix 
all problems associated with uploading php, perl and other such files which 
might be otherwise executed by the web server.
-- 
Phil Driscoll

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Sri Purnomo | 1 Aug 2003 11:53

[PHP-DEV] CVS Account Request: purnomo

TTranslate PHP Manual to Bahasa Indonesia

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Uwe Schindler | 1 Aug 2003 13:54
Picon
Favicon

Re: [PHP-DEV] Warnings during EXPAT compilation in 4.3.3RC2

Yes, compiling of EXPAT alone with gcc 2.95 results in the same warnings. 
With Forte 7 compiler it works without warnings. But PHP istself cannot be 
compiled with Forte7, because some configure tests fail with it (for 
example detection of some header files result in errors [fcntl.h]... See an 
older mailing to this list...).

Are these warnings problematic or not?

At 21:56 31.07.2003 +0300, Jani Taskinen wrote:

>     Try compiling this:
>
>     http://prdownloads.sourceforge.net/expat/expat-1.95.6.tar.gz?download
>
>     You propably get the same warnings?
>     (using GCC, with native CC your propably don't get them)
>
>     --Jani
>
>
>
>On Thu, 31 Jul 2003, Uwe Schindler wrote:
>
> >Tested today 4.3.3RC2 and got a lot of warning during compilation on
> >Solaris 2.9, gcc 2.95:
> >
> >/bin/sh /pangaea/install/php-4.3.3RC2/libtool --silent --preserve-dup-deps
> >--mode=compile /pangaea/install/php-4.3.3RC2/meta_ccld -DBYTEORDER=4321
> >-Iext/xml/ -I/pangaea/install/php-4.3.3RC2/ext/xml/ -DPHP_ATOM_INC
> >-I/pangaea/install/php-4.3.3RC2/include
(Continue reading)

Jani Taskinen | 1 Aug 2003 14:12
Picon
Picon
Favicon

Re: [PHP-DEV] Warnings during EXPAT compilation in 4.3.3RC2

On Fri, 1 Aug 2003, Uwe Schindler wrote:

>Yes, compiling of EXPAT alone with gcc 2.95 results in the same warnings. 
>With Forte 7 compiler it works without warnings. But PHP istself cannot be 
>compiled with Forte7, because some configure tests fail with it (for 
>example detection of some header files result in errors [fcntl.h]... See an 
>older mailing to this list...).

    Could you give the url to that message at news.php.net? 
    I have compiled PHP on Solaris with forte without any problems..
    But it was long ago, something around 4.0.3 - 4.1.0 or so.

>Are these warnings problematic or not?

    If it works..then not? :)
    In any case, report this to the expat people..

    --Jani

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Uwe Schindler | 1 Aug 2003 14:30
Picon
Favicon

Re: [PHP-DEV] Warnings during EXPAT compilation in 4.3.3RC2

At 15:12 01.08.2003 +0300, Jani Taskinen wrote:
>On Fri, 1 Aug 2003, Uwe Schindler wrote:
>
> >Yes, compiling of EXPAT alone with gcc 2.95 results in the same warnings.
> >With Forte 7 compiler it works without warnings. But PHP istself cannot be
> >compiled with Forte7, because some configure tests fail with it (for
> >example detection of some header files result in errors [fcntl.h]... See an
> >older mailing to this list...).
>
>     Could you give the url to that message at news.php.net?
>     I have compiled PHP on Solaris with forte without any problems..
>     But it was long ago, something around 4.0.3 - 4.1.0 or so.

http://news.php.net/article.php?group=php.internals&article=2068

> >Are these warnings problematic or not?
>
>     If it works..then not? :)
>     In any case, report this to the expat people..
>
>     --Jani
>

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Brad Bulger | 1 Aug 2003 14:33

[PHP-DEV] functions returning references to function calls

Hello. I found in PEAR DB class something that seemed like small BC issue.
The package maintainer thought it sounded like bug. If anyone would comment?

function &foo() { return new barclass; }

gives error saying
PHP Fatal error:  Only variables or references can be returned by reference

this is correct for php 5, yes? same as

function &foo() { $a = array(1); return array_keys($a); }

which gives same error in 5, but is acceptable in 4.

Thank you.

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Dan Kalowsky | 1 Aug 2003 16:24

Re: [PHP-DEV] [ext/interbase] Maintainer ?

Hello Ard,

On Fri, 1 Aug 2003, Ard Biesheuvel wrote:

> Hello,
>
> Is the InterBase extension actively being maintained by anyone ?

I believe for a short period it was being maintained by daniela, but it
seems that she has disappeared.  You might wish to contact her by email
and discuss these changes first.

>---------------------------------------------------------------<
Dan Kalowsky			"I thought you died alone,
http://www.deadmime.org/~dank	 a long long time ago."
dank-nom <at> aps-deadmime.org	 - "The Man Who Sold the World"
kalowsky <at> php.net		 	David Bowie

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php


Gmane