Req #19777 [Com]: We need mysql_fetch_all($mysql_result,[TYPE])

2011-09-30 Thread risto78 at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=19777edit=1

 ID: 19777
 Comment by: risto78 at gmail dot com
 Reported by:bav at graphit dot ru
 Summary:We need mysql_fetch_all($mysql_result,[TYPE])
 Status: Wont fix
 Type:   Feature/Change Request
 Package:Feature/Change Request
 Operating System:   All
 PHP Version:4CVS-2002-10-06
 Block user comment: N
 Private report: N

 New Comment:

the function overhead alone of calling this function in a loop several thousand 
times should be enough to make a mysql_fetch_all function


Previous Comments:

[2010-12-19 06:49:58] hafizanil at hotmail dot com

Currently on 2010.Everything data fetch in json.If the mysql result can 
directly push to json data.It much speedier then looping the data and 
json_encode it again.


[2002-10-10 09:03:28] bav at graphit dot ru

Sorry, but I see an advantage. Only one - speed.

Yes, I know, I can write php function for fetching :)
We are not idiots :)


[2002-10-06 14:14:04] ge...@php.net

Looks like the only reason is, that you don't want to write an addidtional line 
to fetch the rows in a loop.

Do you see any other benefits?!

I only see disadvantages... if you need such functionality, why don't write a 
php-function for?! Personally I don't know any Database, which supports such 
kind of functionality; who ever introduced such a function in pgsql must be 
drunk :)


[2002-10-06 05:05:20] bav at graphit dot ru

So, please, we need an analog of pg_fetch_all for mysql...
for speed 
Assume TYPE of fetching is MYSQL_ASSOC etc...

We want to avoid manual fetching like following:
$rt = mysql_query(select from...);
while($cur = mysql_fetch_assoc($rt))
 $result[]=$cur;





-- 
Edit this bug report at https://bugs.php.net/bug.php?id=19777edit=1


Req #19777 [Com]: We need mysql_fetch_all($mysql_result,[TYPE])

2011-09-30 Thread risto78 at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=19777edit=1

 ID: 19777
 Comment by: risto78 at gmail dot com
 Reported by:bav at graphit dot ru
 Summary:We need mysql_fetch_all($mysql_result,[TYPE])
 Status: Wont fix
 Type:   Feature/Change Request
 Package:Feature/Change Request
 Operating System:   All
 PHP Version:4CVS-2002-10-06
 Block user comment: N
 Private report: N

 New Comment:

see http://php.net/manual/en/mysqli-result.fetch-all.php


Previous Comments:

[2011-09-30 20:29:52] risto78 at gmail dot com

the function overhead alone of calling this function in a loop several thousand 
times should be enough to make a mysql_fetch_all function


[2010-12-19 06:49:58] hafizanil at hotmail dot com

Currently on 2010.Everything data fetch in json.If the mysql result can 
directly push to json data.It much speedier then looping the data and 
json_encode it again.


[2002-10-10 09:03:28] bav at graphit dot ru

Sorry, but I see an advantage. Only one - speed.

Yes, I know, I can write php function for fetching :)
We are not idiots :)


[2002-10-06 14:14:04] ge...@php.net

Looks like the only reason is, that you don't want to write an addidtional line 
to fetch the rows in a loop.

Do you see any other benefits?!

I only see disadvantages... if you need such functionality, why don't write a 
php-function for?! Personally I don't know any Database, which supports such 
kind of functionality; who ever introduced such a function in pgsql must be 
drunk :)


[2002-10-06 05:05:20] bav at graphit dot ru

So, please, we need an analog of pg_fetch_all for mysql...
for speed 
Assume TYPE of fetching is MYSQL_ASSOC etc...

We want to avoid manual fetching like following:
$rt = mysql_query(select from...);
while($cur = mysql_fetch_assoc($rt))
 $result[]=$cur;





-- 
Edit this bug report at https://bugs.php.net/bug.php?id=19777edit=1


Bug #48669 [Com]: PHP now includes GOTO

2010-07-13 Thread risto78 at gmail dot com
Edit report at http://bugs.php.net/bug.php?id=48669edit=1

 ID:   48669
 Comment by:   risto78 at gmail dot com
 Reported by:  iwannalive at hotmail dot com
 Summary:  PHP now includes GOTO
 Status:   Bogus
 Type: Bug
 Package:  Reproducible crash
 Operating System: All
 PHP Version:  5.3.0RC4

 New Comment:

sounds like a valid bug to me ;)


Previous Comments:

[2010-05-07 14:41:11] anil at ozselgin dot com

It makes php more buggy and suitable only for small programs. Is there
anybody out there like readable code.


[2009-08-04 18:47:50] and...@php.net

goto hell;


[2009-06-23 23:56:29] der...@php.net

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

.


[2009-06-23 23:46:57] iwannalive at hotmail dot com

Description:

PHP 5.3 includes goto. This is a problem. Seriously, PHP has made it
this far without goto, why turn the language into a public menace?

Reproduce code:
---
?php

goto a;

echo 'Foo';

 

a:

echo 'Bar';

?



Expected result:

The world will end.

Actual result:
--
The world ended.






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