Hi,
I am getting the following output from a php script that calls an
extension I am writing (I have compiled the extension with
--enable-debug)
/home/phpcvs/php4_head/ext/pipe/pipe.c(245) : Freeing 0x0822568C (12
bytes), script=test.php
/home/phpcvs/php4_head/ext/pipe/pipe.c(244) : Freeing
Yup, you will need to FREE_ZVAL() it
On 9 Nov 2002, Tony Leake wrote:
Hi,
I am getting the following output from a php script that calls an
extension I am writing (I have compiled the extension with
--enable-debug)
/home/phpcvs/php4_head/ext/pipe/pipe.c(245) : Freeing 0x0822568C (12
Actually zval_ptr_dtor() is probably more suitable.
In any case, is this zval something you keep locally in your extension or
are you returning/adding it to the engine's symbol table? If so, the engine
should take care of the memory automatically as long as you've done
everything correctly.
haha
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, 9 Nov 2002, Maxim Maletsky wrote:
I have just fixed a few doc files where it was stating that a function
returned -1 but the sources had clear RETURN_FALSE.
Done that, I took some time to grep my phpdoc and php4 trees for -1
returns and, surprisingly, I found out that there were a
Hi,
does PHP4 with the ZE2 supports abstract function like Delphi or C++?
That would be very useful for class development, cause we can avoid
testing if a class is abstract if an abstract class couldn't be
instantiated?
Syntax could be like in C++
class X
{
X(){}
int y() = 0;
}
or little
Hi there, i have a question.
If the php 4.3 can accept webdav requests, can you give me some idea, how i
can configure apache2? To pass this requests to php scripts from apache ?
Thanks!
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 2002-11-08 at 23:41, Yasuo Ohgaki wrote:
I don't mind making pg_fetch_object() accept object (not class)
optionally and initialize field values as object's properties.
What you're saying would be:
$a= pg_fetch_object($q, new Article());
It is certainly not common for PHP
The whole picture is that i want to control a child process completely
from within php. A bit like popen or proc_open but with 2 independent
pipes to the child's stdin and stdout that I can read and write to. So
I'm basically wrapping the c functions pipe(), dup2() and friends. Once
I have it all
ZE1 way:
class MyClass {
function MyClass()
{
die('MyClass is an abstract class');
}
}
ZE2 way:
class AbstractClassException {
}
class MyClass {
function MyClass()
{
throw new AbstractClassException();
}
}
On Sat, 09 Nov 2002, Jens Rehsack
Bug #20147 has been reported as a PEAR bug, but IMO this sounds more
like a PHP problem.
The user reports that he gets the error message
/usr/src/ServerSoftware/PHP/php-4.3.0pre2/sapi/cli/php: relocation
error:
/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429/xml.so:
undefined symbol:
Andrei Zmievski wrote:
ZE1 way:
class MyClass {
function MyClass()
{
die('MyClass is an abstract class');
}
}
ZE2 way:
class AbstractClassException {
}
class MyClass {
function MyClass()
{
throw new AbstractClassException();
}
}
On Sat, 09 Nov
On Sat, 9 Nov 2002, Sterling Hughes wrote:
On Sat, 9 Nov 2002, Sterling Hughes wrote:
There is no such release of Curl yet. This makes testing
the RCs quite a hassle now so either you revert those changes
or get the curl folks to release this 7.10.2.
--Jani
On Sat, 9 Nov 2002, Sterling Hughes wrote:
On Sat, 9 Nov 2002, Sterling Hughes wrote:
There is no such release of Curl yet. This makes testing
the RCs quite a hassle now so either you revert those changes
or get the curl folks to release this 7.10.2.
At 05:44 PM 11/9/2002 +0100, Sterling Hughes wrote:
On Sat, 9 Nov 2002, Sterling Hughes wrote:
On Sat, 9 Nov 2002, Sterling Hughes wrote:
There is no such release of Curl yet. This makes testing
the RCs quite a hassle now so either you revert those changes
or get the
How about testing for the parent? Such as:
?
class AbstractClassException { }
class MyClass
{
var $salutation;
function MyClass()
{
if(!get_parent_class($this))
{
throw new AbstractClassException();
}
$this-salutation = 'Hello';
}
function
Leon Atkinson wrote:
How about testing for the parent? Such as:
?
class AbstractClassException { }
class MyClass
{
var $salutation;
function MyClass()
{
if(!get_parent_class($this))
{
throw new AbstractClassException();
}
$this-salutation = 'Hello';
Hi Tony,
What kind of things are you planning to do?
proc_open seems ideal to extend for this purpose, and works on win32.
--Wez.
On 09/11/02, Tony Leake [EMAIL PROTECTED] wrote:
The whole picture is that i want to control a child process completely
from within php. A bit like popen or
Attached are two patches that I've written to address a number of issues I've
come across while testing PHP on Solaris.
The first patch (alloca.txt) eliminated a warning message due to the fact that
that on Solaris and Tru64 alloca() is defined in a separate header, alloca.h,
which is not
Hi Folks
I try to comfortize my webpages using flash.The server part is still PHP
implemented.
Has anyone experiences on this subjects. Especially trial and errors ;)
could be very informativ to me.
thanks for your help in advance
kind regards Georg
--
PHP Development Mailing List
Hi Folks,
I try to be aware of the theme high available websolutions.
Has anyone got some good ideas to what kind of subjects I have special take
care about, to provide short answer times and high available websolutions to
comfort customers at my upcoming website?
thanks in advance
kind regards
Hi Folks
I try to exchange data via XML files using php as server. Has anyone some
ideas how to work it out?
Kind regards Georg
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php
Hi folks
I try to reduce the amount of unnecessary code fragments in my php scripts.
Once I hear templates for php are the right answer for this problem.
Can give anyone some hints how to work with templates.
kind regards Georg
--
PHP Development Mailing List http://www.php.net/
To
Hi,
I was testing myphp and it didn't work for me, because argv was initialized at
an inaccessible address.
Since I'm not farmiliar with C++, I made some changes using C, basically to
allocate a block for argv, and realloc when needed (see attached patch).
I know I still need to check
please re-post this message to [EMAIL PROTECTED] php-dev is a
wrong list for such questions.
--
Maxim Maletsky
[EMAIL PROTECTED]
On Sat, 9 Nov 2002 21:45:13 +0100 Georg [EMAIL PROTECTED] wrote:
Hi Folks
I try to comfortize my webpages using flash.The server part is still PHP
Wednesday, August 28, 2002, 3:15:13 PM, [EMAIL PROTECTED] wrote:
is $HTTP_RAW_POST_DATA only filled if REQUEST_TYPE is set to POST?
even if 'always_populate_raw_post_data = On'? does anyone have a short
info on this? rasmus maybe?
I to would like know when $HTTP_RAW_POST_DATA is supposed to be
Yes, it has to be a POST request for there to be post data and
$HTTP_RAW_POST_DATA is populated if the mime type of the data is
unrecoginized or if always_populate_raw_post_data is on.
On Sat, 9 Nov 2002, Kjartan Mannes wrote:
Wednesday, August 28, 2002, 3:15:13 PM, [EMAIL PROTECTED] wrote:
Hi Wez,
I wrote a pecl extension called ecasound which interacts with an audio
processing library. Now the way that ecasound is written will change in
future versions and will have a fully interactive mode, all other
implementations (perl, python c++ etc) have been re-written so that they
open up
I was just playing with glob() and realized that its pretty undocumented
(no flags doc'd) and none of the constants (GLOB_ONLYDIR for example)
are actually defined in PHP
Just wanted to see if anyone is doing something with this, if not
(unless someone has an objection) I'll get put the
Here's the patch that Dan and I put together for the optimizer we talked
about at the conference. It basically provides a defaulted-to-null
function pointer that is the default case for the main execute() loop.
This allows people to define their own opcodes without having to copy
the source
Hehe. I should attach the patch, eh?
On Saturday, November 9, 2002, at 09:15 PM, George Schlossnagle wrote:
Here's the patch that Dan and I put together for the optimizer we
talked about at the conference. It basically provides a
defaulted-to-null function pointer that is the default
Hi,
Referring to bug #20268 (Bus Error on startup), I have added some
comments about show-stopping problems with PHP 4.3 with regards to its
lack of 64-bit cleanliness. The main problems seem to be Zend's
OnUpdateInt (which seems misnamed although it uses zend_atoi, it assigns
to a long) and PHP
32 matches
Mail list logo