#43985 [Opn->Bgs]: soap error: Object of class stdClass could not be converted to string

2008-01-30 Thread c00lways at gmail dot com
 ID:   43985
 User updated by:  c00lways at gmail dot com
 Reported By:  c00lways at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: SOAP related
 Operating System: Red Hat 3.4.5-2 / CentOS
 PHP Version:  5.2.5
 New Comment:

sorry

i didn't realised the new php 5.2 doesn't accept object conversion to
string if it doesn't have tostring...

my problem..

:(


Previous Comments:


[2008-01-30 18:36:50] c00lways at gmail dot com

Description:

when i use soap to open a complex wsdl...
and then pass in a stdclass object to be send as parameter...

came out crash:

Catchable fatal error: Object of class stdClass could not be converted
to string in ...

this crash is not captured by try / catch



Reproduce code:
---
  $client = new
SoapClient("http://demo.touricoholidays.com/ws/AmendmentServices.asmx?WSDL";,

 Array( 

"trace"  => 1, 

"exceptions" => 1,

"encoding" => "ISO-8859-1" 

  )

  );

  

  

  $tcost = new stdClass();

  //adding this below gives similar problem...  
  //$tcost->CostAmendObj = new stdClass();
  //$tcost->CostAmendObj->IsOnlyAvailable = "true";
  

  try { 
//this statement causes the error...
echo "Result: " . $client->costamend( $tcost );

  } catch ( Exception $e )
  {
var_dump( $e->getMessage() );
  }

Expected result:

soap response xml

Actual result:
--
Catchable fatal error: Object of class stdClass could not be converted
to string in ...





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


#43985 [NEW]: soap error: Object of class stdClass could not be converted to string

2008-01-30 Thread c00lways at gmail dot com
From: c00lways at gmail dot com
Operating system: Red Hat 3.4.5-2 / CentOS
PHP version:  5.2.5
PHP Bug Type: SOAP related
Bug description:  soap error: Object of class stdClass could not be converted 
to string

Description:

when i use soap to open a complex wsdl...
and then pass in a stdclass object to be send as parameter...

came out crash:

Catchable fatal error: Object of class stdClass could not be converted to
string in ...

this crash is not captured by try / catch



Reproduce code:
---
  $client = new
SoapClient("http://demo.touricoholidays.com/ws/AmendmentServices.asmx?WSDL";,

 Array( 

"trace"  => 1, 

"exceptions" => 1,

"encoding" => "ISO-8859-1" 

  )

  );

  

  

  $tcost = new stdClass();

  //adding this below gives similar problem...  
  //$tcost->CostAmendObj = new stdClass();
  //$tcost->CostAmendObj->IsOnlyAvailable = "true";
  

  try { 
//this statement causes the error...
echo "Result: " . $client->costamend( $tcost );

  } catch ( Exception $e )
  {
var_dump( $e->getMessage() );
  }

Expected result:

soap response xml

Actual result:
--
Catchable fatal error: Object of class stdClass could not be converted to
string in ...

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


#41931 [Bgs]: domdocument->savexml does not have formatoutput effect

2007-07-09 Thread c00lways at gmail dot com
 ID:   41931
 User updated by:  c00lways at gmail dot com
 Reported By:  c00lways at gmail dot com
 Status:   Bogus
 Bug Type: DOM XML related
 Operating System: windows xp prof
 PHP Version:  5.2.3
 New Comment:

Sorry,
i 've forgotten to turn it back on for formatoutput.

my bad...


Previous Comments:


[2007-07-09 15:16:33] c00lways at gmail dot com

HOW CAN YOU SAY IT'S WRONG?

http://www.w3schools.com/dom/dom_validate.asp
indicate my output from the code is valid xml..

 you guys are funny!



[2007-07-09 14:41:56] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

bogus (code is wrong). please do not re-open 



[2007-07-09 14:34:15] c00lways at gmail dot com

is this still bogus?

it's weird, even without parameter in it, i still get 
non-formated output

$dom = new DomDocument();

$dom->preserveWhiteSpace = true;
$dom->formatOutput = false;

$xdom = $dom->createElement( "yyy" );

$xchild = $dom->createElement( "OOO" );

$xchild2 = $dom->createElement( "subchild2" );
$xchild3 = $dom->createElement( "subchild3", "sub3" );

$xchild4 = $dom->createElement( "subchild4", "sub4" );

$xchild5 = $dom->createElement( "subchild5" );

$xchild2->setAttribute( "width", 200 );

$xchild2->appendChild( $xchild3 );
$xchild2->appendChild( $xchild4 );
$xchild2->appendChild( $xchild5 );

$xchild->appendChild( $xchild2 );


$xdom->appendChild( $xchild );

$dom->appendChild( $xdom );

echo $dom->saveXML( );



[2007-07-09 14:11:04] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

and now you are using mixed content (yyy contains both textual and
element nodes as children) so don't expect any formatting within there
... still bogus  



[2007-07-09 13:25:16] c00lways at gmail dot com

No,
still not working



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/41931

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


#41931 [Bgs]: domdocument->savexml does not have formatoutput effect

2007-07-09 Thread c00lways at gmail dot com
 ID:   41931
 User updated by:  c00lways at gmail dot com
 Reported By:  c00lways at gmail dot com
 Status:   Bogus
 Bug Type: DOM XML related
 Operating System: windows xp prof
 PHP Version:  5.2.3
 New Comment:

HOW CAN YOU SAY IT'S WRONG?

http://www.w3schools.com/dom/dom_validate.asp
indicate my output from the code is valid xml..

 you guys are funny!


Previous Comments:


[2007-07-09 14:41:56] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

bogus (code is wrong). please do not re-open 



[2007-07-09 14:34:15] c00lways at gmail dot com

is this still bogus?

it's weird, even without parameter in it, i still get 
non-formated output

$dom = new DomDocument();

$dom->preserveWhiteSpace = true;
$dom->formatOutput = false;

$xdom = $dom->createElement( "yyy" );

$xchild = $dom->createElement( "OOO" );

$xchild2 = $dom->createElement( "subchild2" );
$xchild3 = $dom->createElement( "subchild3", "sub3" );

$xchild4 = $dom->createElement( "subchild4", "sub4" );

$xchild5 = $dom->createElement( "subchild5" );

$xchild2->setAttribute( "width", 200 );

$xchild2->appendChild( $xchild3 );
$xchild2->appendChild( $xchild4 );
$xchild2->appendChild( $xchild5 );

$xchild->appendChild( $xchild2 );


$xdom->appendChild( $xchild );

$dom->appendChild( $xdom );

echo $dom->saveXML( );



[2007-07-09 14:11:04] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

and now you are using mixed content (yyy contains both textual and
element nodes as children) so don't expect any formatting within there
... still bogus  



[2007-07-09 13:25:16] c00lways at gmail dot com

No,
still not working



[2007-07-09 13:24:23] c00lways at gmail dot com

No,
still not working:

example code:

$dom = new DomDocument();

$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;

$xdom = $dom->createElement( "yyy", " value" );

$xdom->preserveWhiteSpace = false;
$xdom->formatOutput = true;

$xchild = $dom->createElement( "OOO", "ooo value" );

$xdom->appendChild( $xchild );

$dom->appendChild( $xdom );

echo $dom->saveXML( $xdom );



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/41931

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


#41931 [Bgs->Opn]: domdocument->savexml does not have formatoutput effect

2007-07-09 Thread c00lways at gmail dot com
 ID:   41931
 User updated by:  c00lways at gmail dot com
 Reported By:  c00lways at gmail dot com
-Status:   Bogus
+Status:   Open
 Bug Type: DOM XML related
 Operating System: windows xp prof
 PHP Version:  5.2.3
 New Comment:

is this still bogus?

it's weird, even without parameter in it, i still get 
non-formated output

$dom = new DomDocument();

$dom->preserveWhiteSpace = true;
$dom->formatOutput = false;

$xdom = $dom->createElement( "yyy" );

$xchild = $dom->createElement( "OOO" );

$xchild2 = $dom->createElement( "subchild2" );
$xchild3 = $dom->createElement( "subchild3", "sub3" );

$xchild4 = $dom->createElement( "subchild4", "sub4" );

$xchild5 = $dom->createElement( "subchild5" );

$xchild2->setAttribute( "width", 200 );

$xchild2->appendChild( $xchild3 );
$xchild2->appendChild( $xchild4 );
$xchild2->appendChild( $xchild5 );

$xchild->appendChild( $xchild2 );


$xdom->appendChild( $xchild );

$dom->appendChild( $xdom );

echo $dom->saveXML( );


Previous Comments:


[2007-07-09 14:11:04] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

and now you are using mixed content (yyy contains both textual and
element nodes as children) so don't expect any formatting within there
... still bogus  



[2007-07-09 13:25:16] c00lways at gmail dot com

No,
still not working



[2007-07-09 13:24:23] c00lways at gmail dot com

No,
still not working:

example code:

$dom = new DomDocument();

$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;

$xdom = $dom->createElement( "yyy", " value" );

$xdom->preserveWhiteSpace = false;
$xdom->formatOutput = true;

$xchild = $dom->createElement( "OOO", "ooo value" );

$xdom->appendChild( $xchild );

$dom->appendChild( $xdom );

echo $dom->saveXML( $xdom );



[2007-07-09 11:52:31] [EMAIL PROTECTED]

You are probably looking at the results through a browser (or using a
different script that is buggy) as the script (once you change the
return to echo) outputs the correct results as expected.



[2007-07-09 03:07:59] c00lways at gmail dot com

Description:

when:
domdocument->preserveWhiteSpace = false;
domdocument->formatoutput( true );
...
domdocument->savexml( domelement );

does not have formatoutput effect on savexml( domelement )

the output string is only 1 line...



Reproduce code:
---
$dom = new DomDocument("1.0", "iso-8859-1");

$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;

$domme = $dom->createElement( "xx" );



$domme->appendChild(new DOMElement("subxx"));

//try to force, but still same output
$domme->preserveWhiteSpace = false;
$domme->formatOutput = true;

$dom->appendChild( $domme );


return $dom->saveXML( $domme );


Expected result:


  


Actual result:
--






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


#41931 [Bgs->Opn]: domdocument->savexml does not have formatoutput effect

2007-07-09 Thread c00lways at gmail dot com
 ID:   41931
 User updated by:  c00lways at gmail dot com
 Reported By:  c00lways at gmail dot com
-Status:   Bogus
+Status:   Open
 Bug Type: DOM XML related
 Operating System: windows xp prof
 PHP Version:  5.2.3
 New Comment:

No,
still not working


Previous Comments:


[2007-07-09 13:24:23] c00lways at gmail dot com

No,
still not working:

example code:

$dom = new DomDocument();

$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;

$xdom = $dom->createElement( "yyy", " value" );

$xdom->preserveWhiteSpace = false;
$xdom->formatOutput = true;

$xchild = $dom->createElement( "OOO", "ooo value" );

$xdom->appendChild( $xchild );

$dom->appendChild( $xdom );

echo $dom->saveXML( $xdom );



[2007-07-09 11:52:31] [EMAIL PROTECTED]

You are probably looking at the results through a browser (or using a
different script that is buggy) as the script (once you change the
return to echo) outputs the correct results as expected.

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

[2007-07-09 03:07:59] c00lways at gmail dot com

Description:

when:
domdocument->preserveWhiteSpace = false;
domdocument->formatoutput( true );
...
domdocument->savexml( domelement );

does not have formatoutput effect on savexml( domelement )

the output string is only 1 line...



Reproduce code:
---
$dom = new DomDocument("1.0", "iso-8859-1");

$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;

$domme = $dom->createElement( "xx" );



$domme->appendChild(new DOMElement("subxx"));

//try to force, but still same output
$domme->preserveWhiteSpace = false;
$domme->formatOutput = true;

$dom->appendChild( $domme );


return $dom->saveXML( $domme );


Expected result:


  


Actual result:
--






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


#41931 [Bgs]: domdocument->savexml does not have formatoutput effect

2007-07-09 Thread c00lways at gmail dot com
 ID:   41931
 User updated by:  c00lways at gmail dot com
 Reported By:  c00lways at gmail dot com
 Status:   Bogus
 Bug Type: DOM XML related
 Operating System: windows xp prof
 PHP Version:  5.2.3
 New Comment:

No,
still not working:

example code:

$dom = new DomDocument();

$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;

$xdom = $dom->createElement( "yyy", " value" );

$xdom->preserveWhiteSpace = false;
$xdom->formatOutput = true;

$xchild = $dom->createElement( "OOO", "ooo value" );

$xdom->appendChild( $xchild );

$dom->appendChild( $xdom );

echo $dom->saveXML( $xdom );


Previous Comments:


[2007-07-09 11:52:31] [EMAIL PROTECTED]

You are probably looking at the results through a browser (or using a
different script that is buggy) as the script (once you change the
return to echo) outputs the correct results as expected.

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

[2007-07-09 03:07:59] c00lways at gmail dot com

Description:

when:
domdocument->preserveWhiteSpace = false;
domdocument->formatoutput( true );
...
domdocument->savexml( domelement );

does not have formatoutput effect on savexml( domelement )

the output string is only 1 line...



Reproduce code:
---
$dom = new DomDocument("1.0", "iso-8859-1");

$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;

$domme = $dom->createElement( "xx" );



$domme->appendChild(new DOMElement("subxx"));

//try to force, but still same output
$domme->preserveWhiteSpace = false;
$domme->formatOutput = true;

$dom->appendChild( $domme );


return $dom->saveXML( $domme );


Expected result:


  


Actual result:
--






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


#41931 [NEW]: domdocument->savexml does not have formatoutput effect

2007-07-08 Thread c00lways at gmail dot com
From: c00lways at gmail dot com
Operating system: windows xp prof
PHP version:  5.2.3
PHP Bug Type: DOM XML related
Bug description:  domdocument->savexml does not have formatoutput effect

Description:

when:
domdocument->preserveWhiteSpace = false;
domdocument->formatoutput( true );
...
domdocument->savexml( domelement );

does not have formatoutput effect on savexml( domelement )

the output string is only 1 line...



Reproduce code:
---
$dom = new DomDocument("1.0", "iso-8859-1");

$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;

$domme = $dom->createElement( "xx" );



$domme->appendChild(new DOMElement("subxx"));

//try to force, but still same output
$domme->preserveWhiteSpace = false;
$domme->formatOutput = true;

$dom->appendChild( $domme );


return $dom->saveXML( $domme );


Expected result:


  


Actual result:
--


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


#41886 [Bgs->Opn]: int added by float ended as not equal to float equavalent value

2007-07-03 Thread c00lways at gmail dot com
 ID:   41886
 User updated by:  c00lways at gmail dot com
 Reported By:  c00lways at gmail dot com
-Status:   Bogus
+Status:   Open
 Bug Type: Math related
 Operating System: windows xp prof sp 2
 PHP Version:  5.2.3
 New Comment:

Hi,

if what you states is true,
how come:

//this output 1
//echo 5.23 == (1+4.23);


Previous Comments:


[2007-07-03 11:46:03] [EMAIL PROTECTED]

Floating point values have a limited precision. Hence a value might 
not have the same string representation after any processing. That also
includes writing a floating point value in your script and directly 
printing it without any mathematical operations.

If you would like to know more about "floats" and what IEEE
754 is read this:
http://docs.sun.com/source/806-3568/ncg_goldberg.html
 
Thank you for your interest in PHP.





[2007-07-03 11:42:22] c00lways at gmail dot com

Description:

int added by float ended as not equal to float equavalent value

Reproduce code:
---
//this output , not 1
echo isValidRange( 5.23, 1, 10, 0.01 );

//this output 1
//echo 5.23 == (1+4.23);



function isValidRange( $p_value, $p_start, $p_end, $p_step=1 )
{
//reverse step
if( $p_end < $p_start )
{
$p_step = -($p_step);
}
if( $p_step == 0.00 )
{
raiseError(1, "Invalid step: " . $p_step);
}
for( $c = $p_start; $c <= $p_end; $c+=$p_step )
{
//this part caused the problem
if( $p_value == $c )
{
return true;
}
   //if change it to
   //if( $p_value."" == $c."" )
   // then it works! return true



}
return false;
}



Expected result:

1

Actual result:
--






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


#41886 [NEW]: int added by float ended as not equal to float equavalent value

2007-07-03 Thread c00lways at gmail dot com
From: c00lways at gmail dot com
Operating system: windows xp prof sp 2
PHP version:  5.2.3
PHP Bug Type: Math related
Bug description:  int added by float ended as not equal to float equavalent 
value

Description:

int added by float ended as not equal to float equavalent value

Reproduce code:
---
//this output , not 1
echo isValidRange( 5.23, 1, 10, 0.01 );

//this output 1
//echo 5.23 == (1+4.23);



function isValidRange( $p_value, $p_start, $p_end, $p_step=1 )
{
//reverse step
if( $p_end < $p_start )
{
$p_step = -($p_step);
}
if( $p_step == 0.00 )
{
raiseError(1, "Invalid step: " . $p_step);
}
for( $c = $p_start; $c <= $p_end; $c+=$p_step )
{
//this part caused the problem
if( $p_value == $c )
{
return true;
}
   //if change it to
   //if( $p_value."" == $c."" )
   // then it works! return true



}
return false;
}



Expected result:

1

Actual result:
--


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


#39409 [NEW]: loadhtml problem when html contains javascript that contain tag in string var

2006-11-06 Thread c00lways at gmail dot com
From: c00lways at gmail dot com
Operating system: windows 2000
PHP version:  5.2.0
PHP Bug Type: DOM XML related
Bug description:  loadhtml problem when html contains javascript that contain 
tag in string var

Description:

odd problem with javascript which contains tag within the string,
example:

---



#35848 [Com]: Failing when including --with-mysql

2006-07-27 Thread c00lways at gmail dot com
 ID:   35848
 Comment by:   c00lways at gmail dot com
 Reported By:  shawn dot richards at ink dot ltd dot uk
 Status:   No Feedback
 Bug Type: MySQL related
 Operating System: Mac OS X Tiger.
 PHP Version:  5CVS-2005-12-30 (snap)
 Assigned To:  andrey
 New Comment:

i've tried to build mysql 5.0.22 with sources..

and use my configure line for php as:

./configure \
--with-mysql=/usr/local/include/mysql  \
--with-gd \
--enable-embedded-mysqli \
--with-gd2 --with-openssl --with-sockets \
--enable-mbstring --enable-ftp --enable-sockets \
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib \
--with-zlib-dir=/usr/lib 

** and it works!


Previous Comments:


[2006-07-27 16:06:19] c00lways at gmail dot com

i've checked on the changelog of mysql...

from mysql 5.0.18 to 5.0.22
almost all of them are security fixes...

this could be a security treat for all existing mysql 5.0.22 and below



[2006-07-27 16:04:02] c00lways at gmail dot com

anyone going to help on this?

i've faced the same problem with mysql 5.0.22 with php 5.1.4...

the problem has been reported on mysql support website, but yet, no one
have got the solutions to it.

i think it's due to libmysql...

when i tried to compile using
--with-mysqli=/usr/local/mysql/bin/mysql_config

it states something to do with invalid version of libmysql..

my box was just freshly installed mysql 5.0.22...

and now attempting to compile the php 5.1.4

example:

--with-mysql=/usr/local/mysql  --with-gd \
--enable-embedded-mysqli \
--with-gd2 --with-openssl --with-sockets \
--enable-mbstring --enable-ftp --enable-sockets \
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib \
--with-zlib-dir=/usr/lib



[2006-07-11 17:06:28] down at townsquirrel dot de

I've the same problem:

Both verions (binary and self-compiled sourcecode) of MYSQL 5.0.22
didn't worked pretty !

Using 5.0.18 solved the problem



[2006-06-29 16:49:04] javier at nediam dot com dot mx

I faced the same problem with the binary distribution of MySQL 5.0.22.
Instead I try with the source distribution (of the same version 5.0.22)
and It worked :)



[2006-06-28 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



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/35848

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


#35848 [Com]: Failing when including --with-mysql

2006-07-27 Thread c00lways at gmail dot com
 ID:   35848
 Comment by:   c00lways at gmail dot com
 Reported By:  shawn dot richards at ink dot ltd dot uk
 Status:   No Feedback
 Bug Type: MySQL related
 Operating System: Mac OS X Tiger.
 PHP Version:  5CVS-2005-12-30 (snap)
 Assigned To:  andrey
 New Comment:

i've checked on the changelog of mysql...

from mysql 5.0.18 to 5.0.22
almost all of them are security fixes...

this could be a security treat for all existing mysql 5.0.22 and below


Previous Comments:


[2006-07-27 16:04:02] c00lways at gmail dot com

anyone going to help on this?

i've faced the same problem with mysql 5.0.22 with php 5.1.4...

the problem has been reported on mysql support website, but yet, no one
have got the solutions to it.

i think it's due to libmysql...

when i tried to compile using
--with-mysqli=/usr/local/mysql/bin/mysql_config

it states something to do with invalid version of libmysql..

my box was just freshly installed mysql 5.0.22...

and now attempting to compile the php 5.1.4

example:

--with-mysql=/usr/local/mysql  --with-gd \
--enable-embedded-mysqli \
--with-gd2 --with-openssl --with-sockets \
--enable-mbstring --enable-ftp --enable-sockets \
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib \
--with-zlib-dir=/usr/lib



[2006-07-11 17:06:28] down at townsquirrel dot de

I've the same problem:

Both verions (binary and self-compiled sourcecode) of MYSQL 5.0.22
didn't worked pretty !

Using 5.0.18 solved the problem



[2006-06-29 16:49:04] javier at nediam dot com dot mx

I faced the same problem with the binary distribution of MySQL 5.0.22.
Instead I try with the source distribution (of the same version 5.0.22)
and It worked :)



[2006-06-28 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2006-06-22 14:34:45] valentijn at depagter dot com

I'm currently experiencing the same problem, with any combination of
the following:

Apache v2.2.2
MySQL v5.0.22 & v5.1.11-beta-i686
PHP 5.1.4 & 5.2 Snapshot (200606221230)

Configuration output:
-
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for
more information.
-

Tried it with both 5.1.4 and the latest snapshot, which unfortunately
does not resolve the issue.

I can confirm that using MySQL v5.0.18 instead of 5.0.22 or 5.1.x does
work.

I think it is the same as, or at least related to the following bug:
http://bugs.mysql.com/bug.php?id=19817

Every MySQL version below 5.0.20 seems to be unaffected.



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/35848

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


#35848 [Com]: Failing when including --with-mysql

2006-07-27 Thread c00lways at gmail dot com
 ID:   35848
 Comment by:   c00lways at gmail dot com
 Reported By:  shawn dot richards at ink dot ltd dot uk
 Status:   No Feedback
 Bug Type: MySQL related
 Operating System: Mac OS X Tiger.
 PHP Version:  5CVS-2005-12-30 (snap)
 Assigned To:  andrey
 New Comment:

anyone going to help on this?

i've faced the same problem with mysql 5.0.22 with php 5.1.4...

the problem has been reported on mysql support website, but yet, no one
have got the solutions to it.

i think it's due to libmysql...

when i tried to compile using
--with-mysqli=/usr/local/mysql/bin/mysql_config

it states something to do with invalid version of libmysql..

my box was just freshly installed mysql 5.0.22...

and now attempting to compile the php 5.1.4

example:

--with-mysql=/usr/local/mysql  --with-gd \
--enable-embedded-mysqli \
--with-gd2 --with-openssl --with-sockets \
--enable-mbstring --enable-ftp --enable-sockets \
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib \
--with-zlib-dir=/usr/lib


Previous Comments:


[2006-07-11 17:06:28] down at townsquirrel dot de

I've the same problem:

Both verions (binary and self-compiled sourcecode) of MYSQL 5.0.22
didn't worked pretty !

Using 5.0.18 solved the problem



[2006-06-29 16:49:04] javier at nediam dot com dot mx

I faced the same problem with the binary distribution of MySQL 5.0.22.
Instead I try with the source distribution (of the same version 5.0.22)
and It worked :)



[2006-06-28 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2006-06-22 14:34:45] valentijn at depagter dot com

I'm currently experiencing the same problem, with any combination of
the following:

Apache v2.2.2
MySQL v5.0.22 & v5.1.11-beta-i686
PHP 5.1.4 & 5.2 Snapshot (200606221230)

Configuration output:
-
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for
more information.
-

Tried it with both 5.1.4 and the latest snapshot, which unfortunately
does not resolve the issue.

I can confirm that using MySQL v5.0.18 instead of 5.0.22 or 5.1.x does
work.

I think it is the same as, or at least related to the following bug:
http://bugs.mysql.com/bug.php?id=19817

Every MySQL version below 5.0.20 seems to be unaffected.



[2006-06-20 15:47:37] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





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/35848

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


#38087 [Opn]: smart: memory usage & error debugging...

2006-07-13 Thread c00lways at gmail dot com
 ID:   38087
 User updated by:  c00lways at gmail dot com
-Summary:  smart memory usage...
 Reported By:  c00lways at gmail dot com
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: any
 PHP Version:  5.1.4
 New Comment:

runapplication.php
line 23: public main()
 line 24: $x = new myclass();
  myclass.php
  line 5: class myclass()
   line 7: public function myclass() {
line 27: $mycon = mysql_connect( ... );


Previous Comments:


[2006-07-13 07:05:14] c00lways at gmail dot com

Description:

php has been my favorites language.
i would like to propose 2 features that i think will perfect it even
better :D

1st. smart memory management:

why? :
i suggest this feature because i find that php have many functions
which takes data directly into 1 variable, whereby the server memory
might not be able to support / become slow..

suggestion: 
where user can specify the limit of memory for soft and hard limit.
soft limits means # ram memory that it will use, where it depends on
the system to assign the memory as usual.

if the user exceeds the soft limit, user data will be written to file /
temporary file, which is done in php.
hard limit will limit the maximum of memory assigned to system +
maximum file / temporary file memory it will produce for each
processes.

in memory wise, i suggest sqlite as the memory database, where it's
very fast for this job.



==

2nd features:
advance debugging feature:

i find that php debugging, especially for web based applications seems
to continue running althought there is error ( example: database
connection / query problem )
which can cause something to go terribly wrong..
it would be better to allow a setting for user to halt on error.

2nd. php should show friendly debugging output , just like in java
having. where by, it will show multiple level of execution tree until
it reaches the line which causes the error..

example:

runapplication.php
line 23: public main()
 line 24: $x = new myclass();
  line 5: class myclass()
   line 7: public function myclass() {
line 27: $mycon = mysql_connect( ... );

this above would be really useful.

hope this features could be implemented :)

thank you very much.

best regards,

James






Expected result:

shown in description






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


#38087 [NEW]: smart memory usage...

2006-07-13 Thread c00lways at gmail dot com
From: c00lways at gmail dot com
Operating system: any
PHP version:  5.1.4
PHP Bug Type: Feature/Change Request
Bug description:  smart memory usage...

Description:

php has been my favorites language.
i would like to propose 2 features that i think will perfect it even
better :D

1st. smart memory management:

why? :
i suggest this feature because i find that php have many functions which
takes data directly into 1 variable, whereby the server memory might not
be able to support / become slow..

suggestion: 
where user can specify the limit of memory for soft and hard limit.
soft limits means # ram memory that it will use, where it depends on the
system to assign the memory as usual.

if the user exceeds the soft limit, user data will be written to file /
temporary file, which is done in php.
hard limit will limit the maximum of memory assigned to system + maximum
file / temporary file memory it will produce for each processes.

in memory wise, i suggest sqlite as the memory database, where it's very
fast for this job.



==

2nd features:
advance debugging feature:

i find that php debugging, especially for web based applications seems to
continue running althought there is error ( example: database connection /
query problem )
which can cause something to go terribly wrong..
it would be better to allow a setting for user to halt on error.

2nd. php should show friendly debugging output , just like in java having.
where by, it will show multiple level of execution tree until it reaches
the line which causes the error..

example:

runapplication.php
line 23: public main()
 line 24: $x = new myclass();
  line 5: class myclass()
   line 7: public function myclass() {
line 27: $mycon = mysql_connect( ... );

this above would be really useful.

hope this features could be implemented :)

thank you very much.

best regards,

James






Expected result:

shown in description


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