#43944 [Com]: undefined function

2008-01-26 Thread programatorfreez at gmail dot com
 ID:   43944
 Comment by:   programatorfreez at gmail dot com
 Reported By:  gandhirajanp at gmail dot com
 Status:   Open
 Bug Type: Sockets related
 Operating System: windows 2000
 PHP Version:  5.2.5
 New Comment:

You have to compile your PHP with --enable-sockets, it isn't bug.


Previous Comments:


[2008-01-26 12:13:33] gandhirajanp at gmail dot com

Description:

Fatal error: Call to undefined function socket_create() in
F:\webdocs\test.php on line 2







-- 
Edit this bug report at http://bugs.php.net/?id=43944&edit=1


#43686 [NEW]: It could be possible to import a string into DomDocument

2007-12-26 Thread programatorfreez at gmail dot com
From: programatorfreez at gmail dot com
Operating system: Gentoo GNU/Linux
PHP version:  5.2.5
PHP Bug Type: Feature/Change Request
Bug description:  It could be possible to import a string into DomDocument

Description:

You're missing a very handful feature and it's pretty annoying to make a
workaround which cannot perform exactly what I need until PHP is fixed.

Reproduce code:
---
This is my crappy workaround for the missing Dom->importString(), however
the support in DOM should be made.

/**
 * Import a string like somethingstrong into the
DomDocument
 *
 * @param  string string
 * @param  DomElement parent
 * @return DomElement reference to imported node
 */
public function importString($string, $parent) {
if ($parent === NULL) {
throw new Exception('Parent cannot be NULL.');
}

$tmp = new DomDocument('1.0', 'utf-8');

// The div is unwanted here, but loadXml doesn't work without it
$tmp->loadXml('' . $string . '');
return $this->domImportNode($tmp->firstChild);
}

Actual result:
--
PHP DOM doesn't provide any similar functionaly, although it's needed.

-- 
Edit bug report at http://bugs.php.net/?id=43686&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43686&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43686&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43686&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43686&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43686&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=43686&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=43686&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=43686&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=43686&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=43686&r=support
Expected behavior:http://bugs.php.net/fix.php?id=43686&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=43686&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=43686&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43686&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43686&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43686&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=43686&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=43686&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43686&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=43686&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=43686&r=mysqlcfg


#43685 [NEW]: Dom->importNode() returns FALSE instead of the Exception

2007-12-26 Thread programatorfreez at gmail dot com
From: programatorfreez at gmail dot com
Operating system: Gentoo GNU/Linux
PHP version:  5.2.5
PHP Bug Type: DOM XML related
Bug description:  Dom->importNode() returns FALSE instead of the Exception

Description:

There is a DomException in the documentation of Dom->importNode(), but it
returns FALSE on fail without a reason.

Reproduce code:
---
/**
 * Import node to dom
 * 
 * @param   DomElement  node which will be imported
 * @param   boolean deep (use recursive importing - default TRUE)
 * @return  DomElement  reference to created node
 */
public function domImportNode($node, $deep = TRUE) {
if (FALSE === ($sxe = $this->dom->importNode($node, $deep))) {
throw new Exception('importNode failed.');
}

$sxe = $this->dom->appendChild($sxe);
return $sxe;
}

Expected result:

DomException

Actual result:
--
My Exception

-- 
Edit bug report at http://bugs.php.net/?id=43685&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43685&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43685&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43685&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43685&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43685&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=43685&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=43685&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=43685&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=43685&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=43685&r=support
Expected behavior:http://bugs.php.net/fix.php?id=43685&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=43685&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=43685&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43685&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43685&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43685&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=43685&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=43685&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43685&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=43685&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=43685&r=mysqlcfg


#43684 [NEW]: leaky output buffering or the inproper for (;;) interpretation

2007-12-26 Thread programatorfreez at gmail dot com
From: programatorfreez at gmail dot com
Operating system: Gentoo GNU/Linux
PHP version:  5.2.5
PHP Bug Type: Scripting Engine problem
Bug description:  leaky output buffering or the inproper for (;;) interpretation

Description:

ob_start(), ob_flush() or for(;;) is leaky and doesn't do what it gotta
do.

Reproduce code:
---
#!/usr/bin/php
\n"; // PHP is pretty bad, it cannot even
do the for cycle properly
ob_flush();
}
?>



Expected result:

It should be an infinite loop

Actual result:
--
...
Iter: 3067
sh-3.2$ 


-- 
Edit bug report at http://bugs.php.net/?id=43684&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43684&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43684&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43684&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43684&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43684&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=43684&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=43684&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=43684&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=43684&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=43684&r=support
Expected behavior:http://bugs.php.net/fix.php?id=43684&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=43684&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=43684&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43684&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43684&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43684&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=43684&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=43684&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43684&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=43684&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=43684&r=mysqlcfg


#43044 [NEW]: Something is wrong with the pseudo-objects

2007-10-19 Thread programatorfreez at gmail dot com
From: programatorfreez at gmail dot com
Operating system: Gentoo GNU/Linux
PHP version:  5.2.4
PHP Bug Type: Reproducible crash
Bug description:  Something is wrong with the pseudo-objects

Description:

Something is wrong

Reproduce code:
---
caption;
} else {
$this->caption = $arg;
}
}
}

$itIsSenseLessPseudoLanguage = new phpIsFuckingShit;
$itIsSenseLessPseudoLanguage->input->text->caption('Hello world');
$why = $itIsSenseLessPseudoLanguage->input->text->caption();
echo "'" . $why . "'";
?>


Expected result:

'Hello world'

Actual result:
--
SEGFAULT

-- 
Edit bug report at http://bugs.php.net/?id=43044&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43044&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43044&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43044&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43044&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43044&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=43044&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=43044&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=43044&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=43044&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=43044&r=support
Expected behavior:http://bugs.php.net/fix.php?id=43044&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=43044&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=43044&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43044&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43044&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43044&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=43044&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=43044&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43044&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=43044&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=43044&r=mysqlcfg


#42338 [Bgs->Opn]: Memory leak in SAPI.c

2007-08-27 Thread programatorfreez at gmail dot com
 ID:   42338
 User updated by:  programatorfreez at gmail dot com
 Reported By:  programatorfreez at gmail dot com
-Status:   Bogus
+Status:   Open
 Bug Type: *General Issues
 Operating System: Gentoo GNU/Linux
 PHP Version:  5.2.4RC2
 New Comment:

'./configure' '--prefix=/usr/lib/php5' '--host=i686-pc-linux-gnu'
'--mandir=/usr/lib/php5/man' '--infodir=/usr/lib/php5/info'
'--sysconfdir=/etc' '--cache-file=./config.cache' '--disable-cli'
'--with-apxs2=/usr/sbin/apxs2'
'--with-config-file-path=/etc/php/apache2-php5'
'--with-config-file-scan-dir=/etc/php/apache2-php5/ext-active'
'--without-pear' '--disable-bcmath' '--with-bz2' '--disable-calendar'
'--without-curl' '--without-curlwrappers' '--disable-dbase'
'--disable-exif' '--without-fbsql' '--without-fdftk' '--disable-filter'
'--disable-ftp' '--with-gettext' '--without-gmp' '--disable-hash'
'--disable-ipv6' '--disable-json' '--without-kerberos'
'--enable-mbstring' '--with-mcrypt' '--without-mhash' '--without-msql'
'--without-mssql' '--with-ncurses' '--with-openssl'
'--with-openssl-dir=/usr' '--disable-pcntl' '--without-pgsql'
'--disable-posix' '--with-pspell' '--without-recode' '--disable-shmop'
'--without-snmp' '--enable-soap' '--enable-sockets' '--without-sybase'
'--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem'
'--disable-sysvshm' '--without-tidy' '--disable-wddx' '--without-xmlrpc'
'--with-xsl' '--disable-zip' '--with-zlib' '--enable-debug'
'--enable-dba' '--without-cdb' '--with-db4' '--without-flatfile'
'--with-gdbm' '--without-inifile' '--without-qdbm'
'--with-freetype-dir=/usr' '--with-t1lib=/usr' '--disable-gd-jis-conv'
'--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--without-xpm-dir'
'--with-gd' '--with-mysql=/usr'
'--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--without-mysqli'
'--without-pdo-dblib' '--with-pdo-mysql=/usr' '--without-pdo-odbc'
'--without-pdo-pgsql' '--without-pdo-sqlite' '--with-readline'
'--without-libedit' '--without-mm' '--without-sqlite'


Previous Comments:


[2007-08-21 20:20:04] programatorfreez at gmail dot com

Jani: I don't understand you, what do you mean? There is *not* anything
broken in my system, that's why PHP 5.2.3 didn't report any memory leak
with the same code and (of course) with the same USE flags and I use
threaded apache for years without any problem (until now with PHP
5.2.4).



[2007-08-21 07:35:56] [EMAIL PROTECTED]

Uh..that comment causes immediate bogusing. Plus: You're using threaded
Apache, there's propably even more broken in your system than just that.



[2007-08-20 16:00:49] programatorfreez at gmail dot com

ACCEPT_KEYWORDS='~x86' USE="apache2 berkdb bzip2 cli crypt ctype debug
gd gdbm iconv mysql
ncurses nls pcre pdo readline reflection session simplexml soap
sockets
spell spl ssl suhosin tokenizer truetype unicode xml xmlreader
xmlwriter
xsl zlib" emerge -av dev-lang/php5

If you are not able to use ./configure --apache2, --berkdb, --bzip2,
--cli, etc. than It's your problem, not my.



[2007-08-20 06:19:50] [EMAIL PROTECTED]

That's not your configure command... configure commands start with
"./configure"



[2007-08-19 21:12:12] programatorfreez at gmail dot com

Ok, next time I will remember. It was:
USE="apache2 berkdb bzip2 cli crypt ctype debug gd gdbm iconv mysql
ncurses nls pcre pdo readline reflection session simplexml soap sockets
spell spl ssl suhosin tokenizer truetype unicode xml xmlreader xmlwriter
xsl zlib"



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/42338

-- 
Edit this bug report at http://bugs.php.net/?id=42338&edit=1


#42338 [Bgs]: Memory leak in SAPI.c

2007-08-21 Thread programatorfreez at gmail dot com
 ID:   42338
 User updated by:  programatorfreez at gmail dot com
 Reported By:  programatorfreez at gmail dot com
 Status:   Bogus
 Bug Type: *General Issues
 Operating System: Gentoo GNU/Linux
 PHP Version:  5.2.4RC2
 New Comment:

Jani: I don't understand you, what do you mean? There is *not* anything
broken in my system, that's why PHP 5.2.3 didn't report any memory leak
with the same code and (of course) with the same USE flags and I use
threaded apache for years without any problem (until now with PHP
5.2.4).


Previous Comments:


[2007-08-21 07:35:56] [EMAIL PROTECTED]

Uh..that comment causes immediate bogusing. Plus: You're using threaded
Apache, there's propably even more broken in your system than just that.

----

[2007-08-20 16:00:49] programatorfreez at gmail dot com

ACCEPT_KEYWORDS='~x86' USE="apache2 berkdb bzip2 cli crypt ctype debug
gd gdbm iconv mysql
ncurses nls pcre pdo readline reflection session simplexml soap
sockets
spell spl ssl suhosin tokenizer truetype unicode xml xmlreader
xmlwriter
xsl zlib" emerge -av dev-lang/php5

If you are not able to use ./configure --apache2, --berkdb, --bzip2,
--cli, etc. than It's your problem, not my.



[2007-08-20 06:19:50] [EMAIL PROTECTED]

That's not your configure command... configure commands start with
"./configure"

----------------

[2007-08-19 21:12:12] programatorfreez at gmail dot com

Ok, next time I will remember. It was:
USE="apache2 berkdb bzip2 cli crypt ctype debug gd gdbm iconv mysql
ncurses nls pcre pdo readline reflection session simplexml soap sockets
spell spl ssl suhosin tokenizer truetype unicode xml xmlreader xmlwriter
xsl zlib"



[2007-08-19 20:04:07] [EMAIL PROTECTED]

And what was the configure line you used to configure PHP?
This is #1 thing you should put in a bug report anybody wants to even
look at. (It's mentioned on the page you submitted the bug from..)



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/42338

-- 
Edit this bug report at http://bugs.php.net/?id=42338&edit=1


#42338 [Fbk->Opn]: Memory leak in SAPI.c

2007-08-20 Thread programatorfreez at gmail dot com
 ID:   42338
 User updated by:  programatorfreez at gmail dot com
 Reported By:  programatorfreez at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: *General Issues
 Operating System: Gentoo GNU/Linux
 PHP Version:  5.2.4RC2
 New Comment:

ACCEPT_KEYWORDS='~x86' USE="apache2 berkdb bzip2 cli crypt ctype debug
gd gdbm iconv mysql
ncurses nls pcre pdo readline reflection session simplexml soap
sockets
spell spl ssl suhosin tokenizer truetype unicode xml xmlreader
xmlwriter
xsl zlib" emerge -av dev-lang/php5

If you are not able to use ./configure --apache2, --berkdb, --bzip2,
--cli, etc. than It's your problem, not my.


Previous Comments:


[2007-08-20 06:19:50] [EMAIL PROTECTED]

That's not your configure command... configure commands start with
"./configure"



[2007-08-19 21:12:12] programatorfreez at gmail dot com

Ok, next time I will remember. It was:
USE="apache2 berkdb bzip2 cli crypt ctype debug gd gdbm iconv mysql
ncurses nls pcre pdo readline reflection session simplexml soap sockets
spell spl ssl suhosin tokenizer truetype unicode xml xmlreader xmlwriter
xsl zlib"



[2007-08-19 20:04:07] [EMAIL PROTECTED]

And what was the configure line you used to configure PHP?
This is #1 thing you should put in a bug report anybody wants to even
look at. (It's mentioned on the page you submitted the bug from..)

------------

[2007-08-18 15:20:21] programatorfreez at gmail dot com

When i execute It without suhosin, the result is:
http://pastebin.ca/662282

------------

[2007-08-18 15:10:52] programatorfreez at gmail dot com

Description:

[Sat Aug 18 16:24:38 2007]  Script: 
'/var/www/localhost/htdocs/weblog/test.php'
/var/tmp/portage/dev-lang/php-5.2.4_pre200708051230-r2/work/php5.2-200708051230/main/SAPI.c(940)
:  Freeing 0x082A9C38 (10 bytes), script=/var$
Last leak repeated 1 time
=== Total 2 memory leaks detected ===


Reproduce code:
---
http://127.0.0.1/weblog/test.php?test' . $query .
'=1';
file_get_contents($url);
}
}

echo 'finished';
?>

Expected result:

No memory leak =)

Actual result:
--
sh-3.2# USE_ZEND_ALLOC=0 valgrind --leak-check=full
--gen-suppressions=yes php -f /var/www/localhost/htdocs/weblog/
test.php

==31902== Memcheck, a memory error detector.
==31902== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et
al.
==31902== Using LibVEX rev 1732, a library for dynamic binary
translation.
==31902== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==31902== Using valgrind-3.2.3, a dynamic binary instrumentation
framework.
==31902== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et
al.
==31902== For more details, rerun with: -v
==31902== 

Warning:
file_get_contents(http://127.0.0.1/weblog/test.php?test[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]!
 [][][][][][][][][][][][][][][][][][
in /var/www/localhost/htdocs/weblog/test.php on line 6
finished==31902== 
==31902== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 7 from
1)
==31902== malloc/free: in use at exit: 26,319 bytes in 1,505 blocks.
==31902== malloc/free: 17,148 allocs, 15,643 frees, 1,966,546 bytes
allocated.
==31902== For counts of detected errors, rerun with: -v
==31902== searching for pointers to 1,505 not-freed blocks.
==31902== checked 1,359,216 bytes.
==31902== 
==31902== LEAK SUMMARY:
==31902==definitely lost: 0 bytes in 0 blocks.
==31902==  possibly lost: 0 bytes in 0 blocks.
==31902==still reachable: 26,319 bytes in 1,505 blocks.
==31902== suppressed: 0 bytes in 0 blocks.
==31902== Reachable blocks (those to which a pointer was found) are n

#42338 [Fbk->Opn]: Memory leak in SAPI.c

2007-08-19 Thread programatorfreez at gmail dot com
 ID:   42338
 User updated by:  programatorfreez at gmail dot com
 Reported By:  programatorfreez at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: *General Issues
 Operating System: Gentoo GNU/Linux
 PHP Version:  5.2.4RC2
 New Comment:

Ok, next time I will remember. It was:
USE="apache2 berkdb bzip2 cli crypt ctype debug gd gdbm iconv mysql
ncurses nls pcre pdo readline reflection session simplexml soap sockets
spell spl ssl suhosin tokenizer truetype unicode xml xmlreader xmlwriter
xsl zlib"


Previous Comments:


[2007-08-19 20:04:07] [EMAIL PROTECTED]

And what was the configure line you used to configure PHP?
This is #1 thing you should put in a bug report anybody wants to even
look at. (It's mentioned on the page you submitted the bug from..)



[2007-08-18 15:20:21] programatorfreez at gmail dot com

When i execute It without suhosin, the result is:
http://pastebin.ca/662282



[2007-08-18 15:10:52] programatorfreez at gmail dot com

Description:

[Sat Aug 18 16:24:38 2007]  Script: 
'/var/www/localhost/htdocs/weblog/test.php'
/var/tmp/portage/dev-lang/php-5.2.4_pre200708051230-r2/work/php5.2-200708051230/main/SAPI.c(940)
:  Freeing 0x082A9C38 (10 bytes), script=/var$
Last leak repeated 1 time
=== Total 2 memory leaks detected ===


Reproduce code:
---
http://127.0.0.1/weblog/test.php?test' . $query .
'=1';
file_get_contents($url);
}
}

echo 'finished';
?>

Expected result:

No memory leak =)

Actual result:
--
sh-3.2# USE_ZEND_ALLOC=0 valgrind --leak-check=full
--gen-suppressions=yes php -f /var/www/localhost/htdocs/weblog/
test.php

==31902== Memcheck, a memory error detector.
==31902== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et
al.
==31902== Using LibVEX rev 1732, a library for dynamic binary
translation.
==31902== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==31902== Using valgrind-3.2.3, a dynamic binary instrumentation
framework.
==31902== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et
al.
==31902== For more details, rerun with: -v
==31902== 

Warning:
file_get_contents(http://127.0.0.1/weblog/test.php?test[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]!
 [][][][][][][][][][][][][][][][][][
in /var/www/localhost/htdocs/weblog/test.php on line 6
finished==31902== 
==31902== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 7 from
1)
==31902== malloc/free: in use at exit: 26,319 bytes in 1,505 blocks.
==31902== malloc/free: 17,148 allocs, 15,643 frees, 1,966,546 bytes
allocated.
==31902== For counts of detected errors, rerun with: -v
==31902== searching for pointers to 1,505 not-freed blocks.
==31902== checked 1,359,216 bytes.
==31902== 
==31902== LEAK SUMMARY:
==31902==definitely lost: 0 bytes in 0 blocks.
==31902==  possibly lost: 0 bytes in 0 blocks.
==31902==still reachable: 26,319 bytes in 1,505 blocks.
==31902== suppressed: 0 bytes in 0 blocks.
==31902== Reachable blocks (those to which a pointer was found) are not
shown.
==31902== To see them, rerun with: --leak-check=full
--show-reachable=yes
sh-3.2# USE_ZEND_ALLOC=0 valgrind --leak-check=full
--gen-suppressions=yes --show-reachable=yes php -f
/var/www/localhost/htdocs/weblog/test.php
==31907== Memcheck, a memory error detector.
==31907== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et
al.
==31907== Using LibVEX rev 1732, a library for dynamic binary
translation.
==31907== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==31907== Using valgrind-3.2.3, a dynamic binary instrumentation
framework.
==31907== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et
al.
==31907== For more details, rerun wi

#42338 [Opn]: Memory leak in SAPI.c

2007-08-18 Thread programatorfreez at gmail dot com
 ID:   42338
 User updated by:  programatorfreez at gmail dot com
 Reported By:  programatorfreez at gmail dot com
 Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: Gentoo GNU/Linux
 PHP Version:  5.2.4RC2
 New Comment:

When i execute It without suhosin, the result is:
http://pastebin.ca/662282


Previous Comments:


[2007-08-18 15:10:52] programatorfreez at gmail dot com

Description:

[Sat Aug 18 16:24:38 2007]  Script: 
'/var/www/localhost/htdocs/weblog/test.php'
/var/tmp/portage/dev-lang/php-5.2.4_pre200708051230-r2/work/php5.2-200708051230/main/SAPI.c(940)
:  Freeing 0x082A9C38 (10 bytes), script=/var$
Last leak repeated 1 time
=== Total 2 memory leaks detected ===


Reproduce code:
---
http://127.0.0.1/weblog/test.php?test' . $query .
'=1';
file_get_contents($url);
}
}

echo 'finished';
?>

Expected result:

No memory leak =)

Actual result:
--
sh-3.2# USE_ZEND_ALLOC=0 valgrind --leak-check=full
--gen-suppressions=yes php -f /var/www/localhost/htdocs/weblog/
test.php

==31902== Memcheck, a memory error detector.
==31902== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et
al.
==31902== Using LibVEX rev 1732, a library for dynamic binary
translation.
==31902== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==31902== Using valgrind-3.2.3, a dynamic binary instrumentation
framework.
==31902== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et
al.
==31902== For more details, rerun with: -v
==31902== 

Warning:
file_get_contents(http://127.0.0.1/weblog/test.php?test[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]!
 [][][][][][][][][][][][][][][][][][
in /var/www/localhost/htdocs/weblog/test.php on line 6
finished==31902== 
==31902== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 7 from
1)
==31902== malloc/free: in use at exit: 26,319 bytes in 1,505 blocks.
==31902== malloc/free: 17,148 allocs, 15,643 frees, 1,966,546 bytes
allocated.
==31902== For counts of detected errors, rerun with: -v
==31902== searching for pointers to 1,505 not-freed blocks.
==31902== checked 1,359,216 bytes.
==31902== 
==31902== LEAK SUMMARY:
==31902==definitely lost: 0 bytes in 0 blocks.
==31902==  possibly lost: 0 bytes in 0 blocks.
==31902==still reachable: 26,319 bytes in 1,505 blocks.
==31902== suppressed: 0 bytes in 0 blocks.
==31902== Reachable blocks (those to which a pointer was found) are not
shown.
==31902== To see them, rerun with: --leak-check=full
--show-reachable=yes
sh-3.2# USE_ZEND_ALLOC=0 valgrind --leak-check=full
--gen-suppressions=yes --show-reachable=yes php -f
/var/www/localhost/htdocs/weblog/test.php
==31907== Memcheck, a memory error detector.
==31907== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et
al.
==31907== Using LibVEX rev 1732, a library for dynamic binary
translation.
==31907== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==31907== Using valgrind-3.2.3, a dynamic binary instrumentation
framework.
==31907== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et
al.
==31907== For more details, rerun with: -v
==31907=

#42338 [NEW]: Memory leak in SAPI.c

2007-08-18 Thread programatorfreez at gmail dot com
From: programatorfreez at gmail dot com
Operating system: Gentoo GNU/Linux
PHP version:  5.2.4RC2
PHP Bug Type: Scripting Engine problem
Bug description:  Memory leak in SAPI.c

Description:

[Sat Aug 18 16:24:38 2007]  Script: 
'/var/www/localhost/htdocs/weblog/test.php'
/var/tmp/portage/dev-lang/php-5.2.4_pre200708051230-r2/work/php5.2-200708051230/main/SAPI.c(940)
:  Freeing 0x082A9C38 (10 bytes), script=/var$
Last leak repeated 1 time
=== Total 2 memory leaks detected ===


Reproduce code:
---
http://127.0.0.1/weblog/test.php?test' . $query . '=1';
file_get_contents($url);
}
}

echo 'finished';
?>

Expected result:

No memory leak =)

Actual result:
--
sh-3.2# USE_ZEND_ALLOC=0 valgrind --leak-check=full --gen-suppressions=yes
php -f /var/www/localhost/htdocs/weblog/
test.php

==31902== Memcheck, a memory error detector.
==31902== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==31902== Using LibVEX rev 1732, a library for dynamic binary
translation.
==31902== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==31902== Using valgrind-3.2.3, a dynamic binary instrumentation
framework.
==31902== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==31902== For more details, rerun with: -v
==31902== 

Warning:
file_get_contents(http://127.0.0.1/weblog/test.php?test[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]!
 [][][][][][][][][][][][][][][][][][
in /var/www/localhost/htdocs/weblog/test.php on line 6
finished==31902== 
==31902== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 7 from 1)
==31902== malloc/free: in use at exit: 26,319 bytes in 1,505 blocks.
==31902== malloc/free: 17,148 allocs, 15,643 frees, 1,966,546 bytes
allocated.
==31902== For counts of detected errors, rerun with: -v
==31902== searching for pointers to 1,505 not-freed blocks.
==31902== checked 1,359,216 bytes.
==31902== 
==31902== LEAK SUMMARY:
==31902==definitely lost: 0 bytes in 0 blocks.
==31902==  possibly lost: 0 bytes in 0 blocks.
==31902==still reachable: 26,319 bytes in 1,505 blocks.
==31902== suppressed: 0 bytes in 0 blocks.
==31902== Reachable blocks (those to which a pointer was found) are not
shown.
==31902== To see them, rerun with: --leak-check=full --show-reachable=yes
sh-3.2# USE_ZEND_ALLOC=0 valgrind --leak-check=full --gen-suppressions=yes
--show-reachable=yes php -f /var/www/localhost/htdocs/weblog/test.php
==31907== Memcheck, a memory error detector.
==31907== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==31907== Using LibVEX rev 1732, a library for dynamic binary
translation.
==31907== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==31907== Using valgrind-3.2.3, a dynamic binary instrumentation
framework.
==31907== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==31907== For more details, rerun with: -v
==31907== 

Warning:
file_get_contents(http://127.0.0.1/weblog/test.php?test[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]!
 [][][][][][][][][][][][][][][][][][
in /var/www/localhost/htdocs/weblog/test.php on line 6

#41767 [Fbk->Opn]: realpath() is not working properly now

2007-06-22 Thread programatorfreez at gmail dot com
 ID:   41767
 User updated by:  programatorfreez at gmail dot com
 Reported By:  programatorfreez at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Filesystem function related
 Operating System: GNU/Linux
 PHP Version:  5.2.3
 New Comment:

Actually i'm happy that my PHP 5.2.2 is working and unfortunatelly i
don't have enough time to compile CVS version and then stable again.
I'll wait until it will be in Gentoo portage, it's the best way for me.

Do you have installed CVS version? If so, please try:
-

-

The directory with script must be in php.ini -> open_basedir, don't
forget to add the final slash. Safe mode must be on.

The result with PHP 5.2.2 is something like
/var/www/localhost/htdocs/mypages.

With PHP 5.2.3 the result is similar to open_basedir restriction in
affect, directory /var/www/localhost/htdocs/mypages is not in allowed
path.

PHP 5.2.3 is actually running only on webhosting, where are stored my
pages.

Thanks for a try


Previous Comments:


[2007-06-21 19:16:55] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi





[2007-06-21 16:16:37] programatorfreez at gmail dot com

Description:

Hello,

In PHP <= 5.2.2 realpath('.") will return realpath to current working
directory (for example /var/www/localhost/htdocs/mypages) but in PHP
5.2.3 function realpath('.') causes openbase_dir restriction related
error.

Reason
==
echo realpath('/var/www/localhost/htdocs/mypages/'); in PHP <= 5.2.2
works, but in PHP 5.2.3 causes openbase_dir restriction error with
something like "You have not access to
/var/www/localhost/htdocs/mypages' (it's because the final slash is
missing) the openbase_dir in php.ini is set to
"/var/www/localhost/htdocs/mypages/", function realpath will cut the
final slash and this will lead to error.

Reproduce code:
---








-- 
Edit this bug report at http://bugs.php.net/?id=41767&edit=1


#41767 [NEW]: realpath() is not working properly now

2007-06-21 Thread programatorfreez at gmail dot com
From: programatorfreez at gmail dot com
Operating system: GNU/Linux
PHP version:  5.2.3
PHP Bug Type: Filesystem function related
Bug description:  realpath() is not working properly now

Description:

Hello,

In PHP <= 5.2.2 realpath('.") will return realpath to current working
directory (for example /var/www/localhost/htdocs/mypages) but in PHP 5.2.3
function realpath('.') causes openbase_dir restriction related error.

Reason
==
echo realpath('/var/www/localhost/htdocs/mypages/'); in PHP <= 5.2.2
works, but in PHP 5.2.3 causes openbase_dir restriction error with
something like "You have not access to /var/www/localhost/htdocs/mypages'
(it's because the final slash is missing) the openbase_dir in php.ini is
set to "/var/www/localhost/htdocs/mypages/", function realpath will cut the
final slash and this will lead to error.

Reproduce code:
---




-- 
Edit bug report at http://bugs.php.net/?id=41767&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41767&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41767&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41767&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41767&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=41767&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=41767&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=41767&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=41767&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=41767&r=support
Expected behavior:http://bugs.php.net/fix.php?id=41767&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=41767&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=41767&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41767&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41767&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41767&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=41767&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=41767&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41767&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=41767&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=41767&r=mysqlcfg