tag:blogger.com,1999:blog-1234953837283832282.comments2023-02-07T00:23:26.917-08:00Still trying to get it all outSara Golemonhttp://www.blogger.com/profile/14557640555210645219noreply@blogger.comBlogger49125tag:blogger.com,1999:blog-1234953837283832282.post-26587876643071869322016-04-27T13:54:43.875-07:002016-04-27T13:54:43.875-07:00dup() is for int file descriptor handles, not for ...dup() is for int file descriptor handles, not for FILE* streams.Sara Golemonhttps://www.blogger.com/profile/14557640555210645219noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-86688098906517127862015-08-31T08:53:09.226-07:002015-08-31T08:53:09.226-07:00There is in fact a clone method: see http://linux....There is in fact a clone method: see http://linux.die.net/man/2/dupC. Scott Ananianhttps://www.blogger.com/profile/07906690430159974949noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-7095511565769469212015-02-13T08:56:35.102-08:002015-02-13T08:56:35.102-08:00Also, the CPP file needs to also:
#include "...Also, the CPP file needs to also:<br /><br />#include "hphp/runtime/base/execution-context.h"<br /><br />when you get to the native functions :) See: https://twitter.com/SaraMG/status/561651461663518721asgrimhttps://www.blogger.com/profile/04604380797553307980noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-81568936864405177352015-01-31T11:48:07.077-08:002015-01-31T11:48:07.077-08:00Yo Sara! This:
var_dump(extension_loaded('exam...Yo Sara! This:<br />var_dump(extension_loaded('example1.php'));<br />should be<br />var_dump(extension_loaded('example1'));asgrimhttps://www.blogger.com/profile/04604380797553307980noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-30132984759593054492015-01-19T00:48:56.043-08:002015-01-19T00:48:56.043-08:00This comment has been removed by the author.SuvPhttps://www.blogger.com/profile/15734063890970475927noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-68062742054018004942015-01-14T16:46:18.925-08:002015-01-14T16:46:18.925-08:00ext_{extname}.php rather. Silly blogger.com platf...ext_{extname}.php rather. Silly blogger.com platform...Sara Golemonhttps://www.blogger.com/profile/14557640555210645219noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-66123628745304621952015-01-14T16:45:15.388-08:002015-01-14T16:45:15.388-08:00You've deduced correctly. I have some plans i...You've deduced correctly. I have some plans in mind to get rid of the ext_.php naming requirement for systemlib files (note: it's only a requirement for systemlib, c++ files can be freely named).<br /><br />I need to do it in a way that won't break existing stuff though, so standby for now. :)Sara Golemonhttps://www.blogger.com/profile/14557640555210645219noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-75001780144668916972015-01-09T07:56:38.271-08:002015-01-09T07:56:38.271-08:00I came across this situation and wanted to know if...I came across this situation and wanted to know if it is as I am assuming it to be.<br />I named my extension xyz_pqr and had files xyz_pqr.php and xyz_pqr.cpp.It compiled well, the extension would load as well, but the function was unidentified. I changed my filenames to ext_xyz_pqr.cpp and ext_xyz_pqr.php and now it works.So was there an issue because the file names and extension name was same? Is that a defined requirement?SuvPhttps://www.blogger.com/profile/15734063890970475927noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-24327404551179959012015-01-08T23:19:16.662-08:002015-01-08T23:19:16.662-08:00Just what I was looking for.Thanks Sara for this t...Just what I was looking for.Thanks Sara for this tutorial on the lines of your PHP extension tutorial.Was confused stumbling on sites without straightforward explainations.SuvPhttps://www.blogger.com/profile/15734063890970475927noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-68430386502181995332014-07-14T05:20:26.526-07:002014-07-14T05:20:26.526-07:00Great great article that made it look so easy to u...Great great article that made it look so easy to understand the zvals and how php works internally. I had read about zvals elsewhere but none made much sense. Thanks for super article. You must keep on writing. ThanksSARFRAZ AHMEDhttps://www.blogger.com/profile/05531037602311036597noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-29486712185749834942014-01-13T19:40:22.790-08:002014-01-13T19:40:22.790-08:00Very interesting article. I'm interested to kn...Very interesting article. I'm interested to know the process PHP goes through when it uses the sprintf function. Due to the fact it's a function it would seem apparent that sprintf is slower, but it would be nice to see the figures and compare.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-81951288042369679142013-11-19T02:16:01.339-08:002013-11-19T02:16:01.339-08:00Thanks for sharing. Please add info about step whe...Thanks for sharing. Please add info about step where semantic analyzer worksdrcreazyhttps://www.blogger.com/profile/17586945360798168706noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-46454744529991066182013-11-02T09:20:50.969-07:002013-11-02T09:20:50.969-07:00There is actually a full list of what the opcodes ...There is actually a full list of what the opcodes do now at http://www.php.net/manual/en/internals2.opcodes.list.phpDerick Rethanshttp://derickrethans.nl/noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-15071237048705243332013-07-15T16:20:41.082-07:002013-07-15T16:20:41.082-07:00Excellent!
Thanks. I will read your zval article t...Excellent!<br />Thanks. I will read your zval article tomorrow...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-22677409054938889392013-04-30T13:09:00.863-07:002013-04-30T13:09:00.863-07:00Brilliant! Thanks a ton for this post.Brilliant! Thanks a ton for this post.David Harknesshttps://www.blogger.com/profile/14747199218255212144noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-57288083612614274302013-04-30T08:00:59.932-07:002013-04-30T08:00:59.932-07:00I'm hungry for more! But the "coverage of...I'm hungry for more! But the "coverage of the zval" link at the bottom of the page appears to be broken, unfortunately.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-498334416906938252013-03-15T09:38:03.788-07:002013-03-15T09:38:03.788-07:00The very first example seems to contradict your pr...The very first example seems to contradict your premise. That IS how references work... If you have two variables referencing the same thing, and you change one to reference something else, the first does not (and should not) change to point to the new thing also. That would completely defeat the purpose of being able to use multiple handles to refer to the same thing.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-90186015155788218552013-02-26T17:59:47.119-08:002013-02-26T17:59:47.119-08:00But it does matter; coming from a different backgr...But it does matter; coming from a different background clearly puts one into an environment that facilitates those developments differently, unless the 'superficial factors' are not what I thought they are.<br /><br />I too find the above paragraph to be very acceptable, or should at least be tolerated without more context. Like Chris said, the person could have been commenting on an observed fact; though apparently the "fluff and eye-candy" is very subjective, and I think the person sending the email certainly failed at supporting his argument in a nicer way.<br /><br />If he had been commenting on a more quantifiable fact, would this have been acceptable? Or, should he have had supported his claim with rigorous study and statistics? It is certainly unrealistic.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-59165267560399551382013-02-26T16:54:39.342-08:002013-02-26T16:54:39.342-08:00In reasoning terms there is no distinction on gend...In reasoning terms there is no distinction on gender. What you suggest as 'being happy to be a woman that cares about pure functionality' is like suggesting to be a 'white man that cares about good music', and I'd like to point out that those superficial factors are completely irrelevant for the developing of the aforementioned mental skills. jsfuhttps://www.blogger.com/profile/11958300971730627913noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-61924006371573546152013-02-26T16:45:38.409-08:002013-02-26T16:45:38.409-08:00When I see stuff like this, this video comes to my...When I see stuff like this, this video comes to my mind http://www.youtube.com/watch?v=GeixtYS-P3s (Morgan Freeman on black history month). It's called positive discrimination, and as the term says, still discrimination. I'm completely agree with Morgan.jsfuhttps://www.blogger.com/profile/11958300971730627913noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-50979351737348828532013-02-26T16:38:24.768-08:002013-02-26T16:38:24.768-08:00If all the black people you interact with talk in ...If all the black people you interact with talk in slang, then you come across a professional that happens to be black. then "You're remarkably well spoken for a black person" is clearly a compliment. There isn't enough context to know if the persion is rasist or not.<br /><br />I would take it as a compliment and be happy that you are a great example that women can care about pure functionality.Chrishttps://www.blogger.com/profile/00868366512410780202noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-49848325896405937432013-02-26T08:19:04.976-08:002013-02-26T08:19:04.976-08:00I had to ask a PHP.net maintainer to remove a grat...I had to ask a PHP.net maintainer to remove a gratuitious reference to violent rape from the official PHP documentation pages last summer. Not new.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-74552775128822174412013-02-26T07:59:51.588-08:002013-02-26T07:59:51.588-08:00Note the date: 7 years ago.
Not to say that it...Note the date: 7 years ago.<br /><br />Not to say that it's not still an issue. This was just a particularly naked form of it. The rest... who can be bothered?Sara Golemonhttps://www.blogger.com/profile/14557640555210645219noreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-24592728123988547702013-02-26T07:32:50.290-08:002013-02-26T07:32:50.290-08:00Wow. Not sure what's going on recently. This, ...Wow. Not sure what's going on recently. This, the PHP-ness tshirts, and the Oscars... Did the meteorite that hit Russia set the brain frequency of some back to the 50s?Kasia Gogolekhttp://gogolek.co.uknoreply@blogger.comtag:blogger.com,1999:blog-1234953837283832282.post-31658426552104835812012-12-24T04:51:50.352-08:002012-12-24T04:51:50.352-08:00yeah me neither yeah me neither yubasinhttps://www.facebook.com/tamazightino?ref=tn_tnmnnoreply@blogger.com