[PHP-DEV] Bug #10459 Updated: can't find function then crush

2001-05-23 Thread akul

ID: 10459
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: *General Issues
Operating system: Windows 98 SE
PHP Version: 4.0.4pl1
Description: can't find function then crush

After upgrading to 4.0.7 (snapshot) bug is dead. Now I have error:

Fatal error: Only variables can be passed by reference in 
C:\www\yesmoke2\adodb\adodb-odbc.inc.php on line 313

and this is normal, so I think bug is closed.

Previous Comments:
---

[2001-05-18 04:43:12] [EMAIL PROTECTED]
Please provide a generic script that is as simple as possible that we can just copy 
and paste into our text editors for testing. This script should have no external 
dependencies unless it is one of these the causes the crash.

This will help us fix the bug.

Thanks,

- James

---

[2001-04-23 11:39:12] [EMAIL PROTECTED]
BTW, function sorted_keys included and must be found..

---

[2001-04-23 11:36:38] [EMAIL PROTECTED]
Configuration: see bug #9819

Output:

X-Powered-By: PHP/4.0.4pl1
Content-type: text/html



Fatal error:  Call to undefined function:  sorted_keys() in ../action.
class.php on line 52

then Windows says (language is russian):

Ïðîãðàììà PHP âûçâàëà ñáîé ïðè îáðàùåíèè ê ñòðàíèöå ïàìÿòè 
â ìîäóëå <íåò äàííûõ> ïî àäðåñó 0084:1f82cf20.
Ðåãèñòðû:
EAX=00d70094 CS=0167 EIP=1f82cf20 EFLGS=00010202
EBX=00d705e0 SS=016f ESP=0063fc58 EBP=0063fc78
ECX= DS=016f ESI=00d70b80 FS=610f
EDX=0080 ES=016f EDI=0001 GS=
Áàéòû ïî àäðåñó CS:EIP:

Ñîäåðæèìîå ñòåêà:
1f702718 0003 006ae6c8 00d7 007bcd70    0063fd10 
1f702505 00d70b80 0001 0010 00761adc 007bcd70 10037cb1 

Source fragment:

class Action
{
var $ID;
var $Name;
var $Parameters;
var $Done=false;
var $events=array();
var $Result;

function Action($Type,$Parameters)
{
global $base;

// Find this action in table
switch(gettype($Type)){
  case 'integer':   $where='ID='.$Type;break;
  case 'string':$where='Name='.$base->qstr($Type);break;
  default:  trigger_error('Incorrect Type parameter in 
Action()',E_USER_ERROR);
}

if(!$action=$base->Execute('SELECT * From Actions WHERE '.$where))
trigger_error('Unknown Type in Action()',E_USER_ERROR);  // 
<-- line 52 is here!

$sk=sorted_keys($Parameters);

while(!$action->EOF())
{
$sorted_params=sort(split(',',$action->Parameters));
$sorted_params=merge(',',$sorted_params);

if($sorted_params==$sk) break;
$action->MoveNext();
}

Sorry, but I can't provide the full sources for this case!

---


Full Bug description available at: http://bugs.php.net/?id=10459


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10459 Updated: can't find function then crush

2001-05-18 Thread jmoore

ID: 10459
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Old-Bug Type: Reproducible Crash
Bug Type: *General Issues
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Please provide a generic script that is as simple as possible that we can just copy 
and paste into our text editors for testing. This script should have no external 
dependencies unless it is one of these the causes the crash.

This will help us fix the bug.

Thanks,

- James

Previous Comments:
---

[2001-04-23 11:39:12] [EMAIL PROTECTED]
BTW, function sorted_keys included and must be found..

---

[2001-04-23 11:36:38] [EMAIL PROTECTED]
Configuration: see bug #9819

Output:

X-Powered-By: PHP/4.0.4pl1
Content-type: text/html



Fatal error:  Call to undefined function:  sorted_keys() in ../action.
class.php on line 52

then Windows says (language is russian):

Ïðîãðàììà PHP âûçâàëà ñáîé ïðè îáðàùåíèè ê ñòðàíèöå ïàìÿòè 
â ìîäóëå <íåò äàííûõ> ïî àäðåñó 0084:1f82cf20.
Ðåãèñòðû:
EAX=00d70094 CS=0167 EIP=1f82cf20 EFLGS=00010202
EBX=00d705e0 SS=016f ESP=0063fc58 EBP=0063fc78
ECX= DS=016f ESI=00d70b80 FS=610f
EDX=0080 ES=016f EDI=0001 GS=
Áàéòû ïî àäðåñó CS:EIP:

Ñîäåðæèìîå ñòåêà:
1f702718 0003 006ae6c8 00d7 007bcd70    0063fd10 
1f702505 00d70b80 0001 0010 00761adc 007bcd70 10037cb1 

Source fragment:

class Action
{
var $ID;
var $Name;
var $Parameters;
var $Done=false;
var $events=array();
var $Result;

function Action($Type,$Parameters)
{
global $base;

// Find this action in table
switch(gettype($Type)){
  case 'integer':   $where='ID='.$Type;break;
  case 'string':$where='Name='.$base->qstr($Type);break;
  default:  trigger_error('Incorrect Type parameter in 
Action()',E_USER_ERROR);
}

if(!$action=$base->Execute('SELECT * From Actions WHERE '.$where))
trigger_error('Unknown Type in Action()',E_USER_ERROR);  // 
<-- line 52 is here!

$sk=sorted_keys($Parameters);

while(!$action->EOF())
{
$sorted_params=sort(split(',',$action->Parameters));
$sorted_params=merge(',',$sorted_params);

if($sorted_params==$sk) break;
$action->MoveNext();
}

Sorry, but I can't provide the full sources for this case!

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10459&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]