php4-beta | 199912
Date: 12/22/99
- Next message: rasmus <email protected>: "Re: [PHP4BETA] 'resource' data type"
- Previous message: Sascha Schumann: "[PHP4BETA] cvs: /php4 configure.in"
- Maybe in reply to: Mako Joe: "[PHP4BETA] 'resource' data type"
- Next in thread: rasmus <email protected>: "Re: [PHP4BETA] 'resource' data type"
- Reply: rasmus <email protected>: "Re: [PHP4BETA] 'resource' data type"
- Reply: Zeev Suraski: "Re: [PHP4BETA] 'resource' data type"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is there documentation on this anywhere? This isn't listed among the differences between PHP3 & PHP4. There is also no documentation on the function is_resource(). This seems to be a significant change in the language (an entirely new data type), it would seem appropriate to have some documentation on this issue.
Thanks
-Joe
> > It seems that there's a new data type in PHP4 called a "resource". The
> > function ifx_connect() which returned an int in PHP3 returns a 'resource' in
> > PHP4. If I recall correctly, there is also a function called is_resource(),
> > but I can't test it at the moment. I've searched high and low for any
> > documentation on this issue, but haven't found anything. If you know
> > anything about this, or can direct me toward any documentation on this,
> > please email me or respond to this post.
> >
> > This happens to be an important issue for us, and may be as well for other
> > people, as we have a lot of code that checks the return value of
> > ifx_connect() with is_integer(). When we tried to migrate to PHP4, our
> > scripts reported failure connecting to Informix. It took a lot of debugging
> > to figure out what the problem was. I hope this is documented somewhere,
> > because I'm sure other people will have similar problems.
>
>Hopefully not too many people did an is_integer() check on the return from
>a db connect function. They happened to be integers in PHP 3 and they are
>no longer integers in PHP 4. You need to change your code.
>
>-Rasmus
>
- Next message: rasmus <email protected>: "Re: [PHP4BETA] 'resource' data type"
- Previous message: Sascha Schumann: "[PHP4BETA] cvs: /php4 configure.in"
- Maybe in reply to: Mako Joe: "[PHP4BETA] 'resource' data type"
- Next in thread: rasmus <email protected>: "Re: [PHP4BETA] 'resource' data type"
- Reply: rasmus <email protected>: "Re: [PHP4BETA] 'resource' data type"
- Reply: Zeev Suraski: "Re: [PHP4BETA] 'resource' data type"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

