Hi Derick,
in php-src/main/php_sprintf.c
PHPAPI int
php_sprintf (char*s, const char* format, ...)
{
va_list args;
char *ret; //ret should be of type integer as vsprintf returns int
rather than char*
va_start (args, format);
s[0] = '\0';
ret = vsprintf (s, format, args);
va_end
On 2005/01/02, at 21:23, Marcus Boerger wrote:
while i tried to improve performance of the array functions i
developed a
new pass type - pass as const which doesn't touch the passed variable
at
all and is compatible with temp vars, too. Maybe your problem here is a
reason to really implement
On Tue, 04 Jan 2005 02:59:22 +, Gareth Ardron [EMAIL PROTECTED] wrote:
Ok, I'm in need of a sanity check here.
step one:
$input = foo;
$scanning_class = clamav;
$result = $scanning_class::scanBuffer($input);
now this fails with a Parse error: parse error, unexpected
On Tue, 4 Jan 2005, Kamesh Jayachandran wrote:
Hi Derick,
in php-src/main/php_sprintf.c
PHPAPI int
php_sprintf (char*s, const char* format, ...)
{
va_list args;
char *ret; //ret should be of type integer as vsprintf returns int rather
than char*
It is already an int, please update
Jason Sweat wrote:
Hi Gareth,
In addition to the other options people have mentioned, you could also
use the old standby of:
eval(\$result = $scanning_class::scanBuffer(\$input););
Cheers for all the replies, people. I may have a bit of a prod at the
internals this evening though, as this is a
Wez Furlong wrote:
If you want to do this kind of thing, why not do it properly?
$foo = new $scanning_class;
$foo-scanBuffer($input);
that is, after all, what extends is all about.
--Wez
hihi, that why Wez get the 'King' prefix and everyone doesn't :-)
...
--
PHP Internals - PHP Runtime
hi guys,
I was mucking around and noticed the following:
define(404_SKIP, 1);
does not give an error and you can successfully get the value of the
constant by doing:
constant(404_SKIP);
where as doing:
echo 404_SKIP;
gives an error.
as I understand it, i.e. what the docs say, is that the
There are plenty of such examples in many languages. As Johannes mentions,
some ppl might even be abusing it already :)
Anyway, I don't think adding necessary checks for such things, and slowing
define() down (even if it's negligible) is warranted in such cases.
Andi
At 12:29 AM 1/5/2005 +0100,
How exactly did you run the phpize and the generated configure?
What are the autoconf, libtool and automake versions in your system?
Checking configure generated on my machine, it's impossible
for $host_alias to be empty unless you specify it to be
empty with --host= or