#30509 [Bgs]: Infinite recursion in Engine

2004-10-21 Thread azmoo at azmoo dot net
 ID:   30509
 User updated by:  azmoo at azmoo dot net
 Reported By:  azmoo at azmoo dot net
 Status:   Bogus
 Bug Type: Zend Engine 2 problem
 Operating System: Linux, Fedora Core 1 and 2
 PHP Version:  5.0.2
 New Comment:

This is not a bug in my code. It enters the recursive function once
before segfaulting and the backtrace indicates a bug in the Zend
Engine. We have tested this by outputting to a file each time the
recursive function is called, and it is only outputting once. Try it
yourself, the provided source will demonstrate the problem.


Previous Comments:


[2004-10-21 09:20:05] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This is a bug in your code.



[2004-10-21 06:22:37] azmoo at azmoo dot net

Description:

When running the provided code, the second time that the recursive
function, recurseQueries() is called, it seems to send the Zend Engine
into infinite recursion. Apache, both versions 1.3 and version 2, then
Segfaults. Error log from apache is as follows:

[Thu Oct 21 13:34:26 2004] [notice] child pid 18344 exit signal
Segmentation fault (11)

This happens on PHP versions 5.01 and 5.02.

Reproduce code:
---
http://www.azmoo.net/work/SQLParser.inc.phps

Expected result:

Should have a DOMDocument object with data in a heirarchical format.
Apache should not crash.

Actual result:
--
Segfault.

Backtrace located at http://www.azmoo.net/work/sql_backtrace.txt





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


#30509 [NEW]: Infinite recursion in Engine

2004-10-20 Thread azmoo at azmoo dot net
From: azmoo at azmoo dot net
Operating system: Linux, Fedora Core 1 and 2
PHP version:  5.0.2
PHP Bug Type: Zend Engine 2 problem
Bug description:  Infinite recursion in Engine

Description:

When running the provided code, the second time that the recursive
function, recurseQueries() is called, it seems to send the Zend Engine
into infinite recursion. Apache, both versions 1.3 and version 2, then
Segfaults. Error log from apache is as follows:

[Thu Oct 21 13:34:26 2004] [notice] child pid 18344 exit signal
Segmentation fault (11)

This happens on PHP versions 5.01 and 5.02.

Reproduce code:
---
http://www.azmoo.net/work/SQLParser.inc.phps

Expected result:

Should have a DOMDocument object with data in a heirarchical format.
Apache should not crash.

Actual result:
--
Segfault.

Backtrace located at http://www.azmoo.net/work/sql_backtrace.txt

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


#30488 [NEW]: Associative array key called on string returns first character

2004-10-19 Thread azmoo at azmoo dot net
From: azmoo at azmoo dot net
Operating system: Linux
PHP version:  5.0.2
PHP Bug Type: Variables related
Bug description:  Associative array key called on string returns first character

Description:

If referencing an associative array key on a string (which we shouldn't be
doing, obviously), it seems to make the key equal 0, and consequently
returns the first character of the string. I expected this to return NULL.

Reproduce code:
---
$string = 'This is a string!';
var_dump($string['key']);

Expected result:

NULL

Actual result:
--
'T'

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